![]() ![]() It will wait for the duration of RestartSec to restart it. The Restart=always will notice that Sonarr’s pid has disappeared. ![]() Once Sonarr kills the process, the ExecStop command line argument runs - which updates Sonarr. ![]() The Sonarr updater takes 3 main args, first is the pid of the current sonarr process (which it will kill) and then the source and target directories of the update. All you really need is a service type of ‘simple’. Now, here’s a few explanations for why I did things this way. That will have it load at startup and set the proper runlevels, etc. NzbDrone | grep -v grep | awk ''\` /tmp/nzbdrone_update /opt/NzbDrone/NzbDrone.exeĪfter putting the file in /etc/systemd/system, run the following commands: Notice that little "-" sign? That tells systemd to ignore any exit codes. \#-startĮxecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowserĮxecStop=-/usr/bin/mono /tmp/nzbdrone_update/ \`ps aux | grep It might need a little tweaking to get your paths/username right - but here’s what mine looks like, and it works fine on Ubuntu. Yes, yes, I know, there’s a lot of back-and-forth in the linux community regarding systemd, but after taking a day or so to learn it, I can see why it’s being so widely adopted.Īnyway, here’s the rvice info I used (put it in /etc/systemd/system/). Well, I got upgraded alright - to whatever release that switched me from sysvinit to the new systemd. So last night I decided to do an apt-get upgrade. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |