Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .