Revision [1764]
Last edited on 2008-06-12 08:55:29 by WikiAdminAdditions:
===Daemontools and upstart===
Create a file under /etc/event.d
# svscanboot
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on shutdown
exec /usr/local/bin/svscanboot
respawn
Then start this upstart service and check its status
initctl start svscanboot
initctl status svscanboot
Create a file under /etc/event.d
# svscanboot
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on shutdown
exec /usr/local/bin/svscanboot
respawn
Then start this upstart service and check its status
initctl start svscanboot
initctl status svscanboot
Deletions:
Revision [56]
Edited on 2007-04-14 08:55:59 by WikiAdminAdditions:
=== Starting / stopping services ===
~ svc -h /service/yourdaemon: sends HUP
~ svc -t /service/yourdaemon: sends TERM, and automatically restarts the daemon after it dies
~ svc -d /service/yourdaemon: sends TERM, and leaves the service down
~ svc -u /service/yourdaemon: brings the service back up
~ svc -o /service/yourdaemon: runs the service once
~ svc -h /service/yourdaemon: sends HUP
~ svc -t /service/yourdaemon: sends TERM, and automatically restarts the daemon after it dies
~ svc -d /service/yourdaemon: sends TERM, and leaves the service down
~ svc -u /service/yourdaemon: brings the service back up
~ svc -o /service/yourdaemon: runs the service once
Deletions:
* svc -h /service/yourdaemon: sends HUP
* svc -t /service/yourdaemon: sends TERM, and automatically restarts the daemon after it dies
* svc -d /service/yourdaemon: sends TERM, and leaves the service down
* svc -u /service/yourdaemon: brings the service back up
* svc -o /service/yourdaemon: runs the service once