FS#40059 - [nzbget] Systemd Service File
Attached to Project:
Community Packages
Opened by Brandon Golway (brando56894) - Thursday, 24 April 2014, 04:01 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Sunday, 08 March 2015, 14:18 GMT
Opened by Brandon Golway (brando56894) - Thursday, 24 April 2014, 04:01 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Sunday, 08 March 2015, 14:18 GMT
|
Details
Any chance this systemd service can get added to the
package?
[Unit] Description=NZBGet # This will make sure, that nzbget is loaded AFTER setting up the network DaemonAfter=network.target [Service] # Even if you set up the Daemon User in nzbget.conf, you will still # need to set that name here. Otherwise, nzbget will be run as root User=nzbget ExecStart=/usr/bin/nzbget -D ExecStop=/usr/bin/nzbget -Q ExecReload=/bin/kill -HUP $MAINPID KillMode=process [Install] # Needed to run nzbget at boot WantedBy=multi-user.target Source: http://lostsalad.co.za/2012/12/13/raspberry-pi-usenet-downloads-with-nzbget |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Sunday, 08 March 2015, 14:18 GMT
Reason for closing: Won't implement
Sunday, 08 March 2015, 14:18 GMT
Reason for closing: Won't implement
With this package you can easily start NZBGet via "sudo systemctl start nzbget". It will run as User "nzbget" (Home: "/var/lib/nzbget").
@Jaroslav: Any chance to merge this into the community package?
[Unit]
Description=NZBGet Daemon
[Service]
User=%i
ExecStart=/usr/bin/nzbget -D
ExecReload=/usr/bin/nzbget -O
ExecStop=/usr/bin/nzbget -Q
PIDFile=%h/nzbget.lock
KillMode=process
[Install]
WantedBy=multi-user.target