Making a script into a linux service
Use su
to run the script as a different user:
daemon su -c /home/webreports/report-listen johndoe
where johndoe
is the user you want it to run as.
Put the script in /etc/init.d/myservice, then symlink it to /etc/rc.d/S99myservice.
just copying will not do the job. You have to take care the program is decoupled from stdin and stdout. Therefor all output has to be printed to a logfile. You also have to background the program, which should be done by the daemon function.