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
Have you tried doing it the other way around with the quotes? Like this:
DAEMON_OPTS='-la "/folder with space/"'
I'm not sure, but that might work?
(I would have posted this as a comment to the previous answer, if only I had had enough reputation to do so).