Help on daemontools

From Asibot & HOAP3 & TEO Wiki
Revision as of 18:38, 31 January 2018 by Jgvictores (talk | contribs)
Jump to navigation Jump to search

Install on Ubuntu

sudo apt-get install daemontools daemontools-run csh

"daemontools" can be activated in "/etc/rc.local" through the line (before exit):

/bin/csh -cf '/usr/bin/svscanboot &'

Create a service

Create /etc/service/whatever/run and give chmod +x

Monitoring

Get the status of, say, a '/etc/service/yarprun' service with:

sudo svstat /etc/service/yarprun

Stop the service with:

sudo svc -d /etc/service/yarprun

Start the service with:

sudo svc -u /etc/service/yarprun

You can get some log messages for debugging with:

ps aux | grep readproctitle

help (link 1)

help (link 2)