Code: Select all
./configure --with-tlslib=OpenSSL && make -j4 && sudo make install && sudo make install-conf
sudo cp /usr/local/share/nzbget/nzbget.conf /etc/nzbget.conf
I tried getting the cronjob to log but no output is created
The init.d script doesn't work on start but will work starting manually (it didn't work for NZBGet 14 either though). I don't even see it trying in dmesg and daemon.log. I did try the other init.d script http://nzbget.net/forum/viewtopic.php?f=3&t=1849 but it also doesn't autostart.
I thought maybe a delay would help and added sleep 30 before the nzbget -D line in the init.d script, I tried it for the cronjob too.
Code: Select all
#!/bin/sh
### BEGIN INIT INFO
# Provides: nzbget
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Should-Start: $NetworkManager
# Should-Stop: $NetworkManager
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of NZBGet
# Description: starts instance of NZBGet using start-stop-daemon
### END INIT INFO
NZBGETPATH=$(which nzbget)
# Source init functions
. /lib/lsb/init-functions
# Start/stop the NZBget daemon.
#
case "$1" in
start) echo -n "Start services: NZBget"
$NZBGETPATH -D
;;
stop) echo -n "Stop services: NZBget"
$NZBGETPATH -Q
;;
restart)
$0 stop
$0 start
;;
*) echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0