OSMC systemd NZBget
[Unit]
Description=NZBGet
After=network.target
[Service]
User=osmc
Group=osmc
ExecStart=/opt/nzbget/nzbget -D
ExecStop=/opt/nzbget/nzbget -Q
# process will demonize and parent return ok
Type=forking
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
[Install]
# Needed to run nzbget at boot
WantedBy=multi-user.target
OSMC systemd Couchpotato
[Unit]
Description=CouchPotato
After=network.target
[Service]
ExecStart=/opt/CouchPotato/CouchPotato.py --daemon
GuessMainPID=no
Type=forking
User=osmc
Group=osmc
[Install]
WantedBy=multi-user.target
OSMC systemd Sonarr
[Unit]
Description=Sonarr Daemon
After=syslog.target network.target
[Service]
User=osmc
Group=osmc
Type=simple
ExecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe --nobrowser
TimeoutStopSec=20
[Install]
WantedBy=multi-user.target