Ubuntu start-stop-daemon “Exec format error”

This is for anyone Googling it…

If you get the above error when trying to start a daemon, chances are you forgot to add a shebang to the top of your script:

1
2
#!/bin/sh
// your code goes here