Page 1 of 1

Startup script needs changing

Posted: Sat 14 Nov 2015, 15:53
by thos
Hi,
The /etc/init.d/spc-web-gateway scripts wouldnt work for me was getting “start-stop-daemon: unable to stat”

so had to change

Code: Select all

        start-stop-daemon --start  --pidfile $PIDFILE --make-pidfile  --background --chdir $DAEMON_PATH --exec $NAME -c $RUN_AS > $LOGFILE 2>&1
by adding $DAEMON_PATH to the -exec:

Code: Select all

        start-stop-daemon --start  --pidfile $PIDFILE --make-pidfile  --background --chdir $DAEMON_PATH --exec $DAEMON_PATH/$NAME -c $RUN_AS > $LOGFILE 2>&1
Now 'service spc-web-gateway stop|start' works perfect.
Not sure why the PATH variable (which sets /opt/spc-web-gateway) wasnt working, but this was a quick fix.

Tom