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
NTOP=/opt/bash_scripts/start-up-superscript &must be:NTOP=/opt/bash_scripts/start-up-superscriptps -efdid you find "/opt/bash_scripts/start-up-superscript"?