0

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)

1

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.

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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