I have a perl script which runs a mini webserver allowing me to do various things. I'd like to have this script run when the machine starts up, and constantly run in the background.

How should I achieve this? I want the script to regardless of whether anyone is logged in or not, so I can't put it in any bash-related files.

I'm using Debian, if that affects things (which it probably will)

link|improve this question
feedback

1 Answer

Please see Process Management.

You will want to use the init facility (/etc/rc.d) or daemontools. If it's a recent version of Debian, you can use Upstart.

link|improve this answer
I don't believe upstart is considered stable yet on Debian. It should only be used by extremely experienced users. – Arrowmaster Mar 19 '11 at 5:55
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.