Proper way to manage Daemons, Debian/Ubuntu Linux

Posted on

Proper way to manage Daemons, Debian/Ubuntu Linux – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, ubuntu, daemon, , .

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?

Solution :

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

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.

Leave a Reply

Your email address will not be published.