I do not understand this error: start-stop-daemon: option --exec
requires an argument
I am very new to the init.d
world and have only just got my script going using service calls, I just want to get this script working, it starts on boot but failed because of this error any help? (any suggestions or rewrites are welcome even if not related to my issue)
Here is my script:
#!/bin/bash
# shell script to ...
#set the full path to the programs we need to use
NTOP=/opt/bash_scripts/start-up-superscript &
KILLALL=/usr/bin/killall
case "$1" in
start)
echo "Starting SDD Install..."
start-stop-daemon --start --quiet --oknodo --exec $NTOP
;;
stop)
#kill ntop
echo "Stopping SSD..."
$KILLALL ntop
;;
restart)
$0 stop
$0 start
;;
status)
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
;;
esac
– LilloX Dec 07 '15 at 10:23NTOP=/opt/bash_scripts/start-up-superscript &
must be:I can kill it if I type /bin/bash ... but this would obviously kill all bash scripts... :/ dunno what to do (I just tried your suggestion but the out put of NTOP is /bin/bash /opt/bash_scripts/start-up-ssd)
– TheHidden Dec 07 '15 at 10:32ps -ef
did you find "/opt/bash_scripts/start-up-superscript"? – LilloX Dec 07 '15 at 10:37