Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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)

share|improve this question
add comment

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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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