Difference between revisions of "Help on daemontools"

From Asibot & HOAP3 & TEO Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
== Install on Ubuntu ==
+
Por favor rediríjanse a NUEVO TUTORIAL: https://github.com/roboticslab-uc3m/installation-guides/blob/master/install-daemontools.md
 
 
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
 
 
 
----
 
 
 
[http://blog.teksol.info/pages/daemontools/tutorial help (link 1)]
 
 
 
[http://crossbar.io/docs/Automatic-startup-and-restart/ help (link 2)]
 

Latest revision as of 17:47, 7 February 2018