Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the best way? Or at least... an easily managed one?

I am routinely creating shell and python scripts that need to always be running in the background.

Any recommendations on packages that simplify this? In the past I would stick a shell script in cron to check for the running process, but this feels like a hack. I recently read about a program called Angel, which is written in Haskell that does this, but this seems like a common use that would be built in to the OS somewhere.

edit: What tool would reduce the time I spend on this activity and result in something both easily maintainable and quickly deployable to new servers?

share|improve this question

migrated from stackoverflow.com Oct 28 '10 at 1:54

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers 2

up vote 1 down vote accepted

I regularly use supervisor for this kind of tasks. Especially for scripts that do not justify the creation of a complete SysV-init script.

share|improve this answer
    
Exactly what I am looking for! "Especially for scripts that do not justify the creation of a complete SysV-init script." –  mvrak Oct 28 '10 at 17:21
add comment

Ubuntu uses a custom version of /sbin/init called Upstart.


On Debian, I think you use SystemV scripts, though I'm not sure.

SystemV, if that is the case, is managed via a program called service.

They are chaning things, though. This idea was planned for Lenny (released a year ago), but I don't know if it is actually implemented.

share|improve this answer
    
I consider this a general linux administration question. I deploy across several flavors of linux and will not be picking a particular tool as a solution unless it is cross-linuxy. –  mvrak Oct 28 '10 at 1:16
    
@mvrak: Then to superuser it is! –  OMG Ponies Oct 28 '10 at 1:21
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.