I have a init.d script that start|stops|restarts a daemon using the start-stop-daemon.
This daemon is always started as root. I want to be able to specify the user that the init.d script will use to start the daemon.
Tried using the --user option for start-stop-daemon but that is not working.
Can someone please suggest how to do this.