From 0c9cdb07870b380648231255953c620c9c7dea0c Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Wed, 7 Oct 2009 02:33:50 +0000 Subject: * doc/useinit.html: update description on how to use with upstart (thx Gabriel de Perthuis). --- doc/useinit.html | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'doc') diff --git a/doc/useinit.html b/doc/useinit.html index 58adec2..a5c2853 100644 --- a/doc/useinit.html +++ b/doc/useinit.html @@ -48,21 +48,22 @@ and tell init to re-read its configuration, e.g.:

Using with sysvinit and upstart

If your system uses a sysvinit alike init scheme that utilizes upstart instead of inittab, and which has start and stop scripts located in -/etc/event.d, do: +/etc/init/, do:
- # cat >/etc/event.d/SV <<\EOT
- # for runit - manage /sbin/runsvdir-start
- start on runlevel-2
- start on runlevel-3
- start on runlevel-4
- start on runlevel-5
+ # cat >/etc/init/runsvdir.conf <<\EOT
+ # for runit - manage /usr/sbin/runsvdir-start
+ start on runlevel 2
+ start on runlevel 3
+ start on runlevel 4
+ start on runlevel 5
  stop on shutdown
- respawn /sbin/runsvdir-start
+ respawn
+ exec /usr/sbin/runsvdir-start
  EOT
 
-and tell init to re-read its configuration, e.g.: +and tell init to start the new service, e.g.:
- # init q
+ # start runsvdir
 

Using with *BSD init

-- cgit 1.4.1