I have been trying to make an init script using start-stop-daemon. I am stuck on the arguments to the daemon. I want to keep these in a variable at the top of the script but
Whenever you have a bash variable with spaces, make sure you use quotes when referring to it.
start-stop-daemon --start --make-pidfile --pidfile $PID --exec $DAEMON -- "$DAEMON_OPTS"