Startup script needs changing

General topics about usage of SPC Web Gateway on Ubuntu
Post Reply
thos
Posts: 8
Joined: Mon 09 Nov 2015, 21:45

Startup script needs changing

Post 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
Post Reply