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
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
Not sure why the PATH variable (which sets /opt/spc-web-gateway) wasnt working, but this was a quick fix.
Tom