From 4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Thu, 14 Jun 2007 14:24:38 +0000 Subject: doc/useinit.html: add docs on how to use with upstart (thx Lloyd Zusman) --- doc/useinit.html | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/useinit.html b/doc/useinit.html index 6394967..2623248 100644 --- a/doc/useinit.html +++ b/doc/useinit.html @@ -27,11 +27,12 @@ In any case, you first need to copy the stage 2 script to # mkdir -p /var/service
-How to use with sysvinit
+How to use with sysvinit and inittab
+How to use with sysvinit and upstart
How to use with *BSD init
How to use with MacOSX init
-

Using with sysvinit

+

Using with sysvinit and inittab

If your system uses a sysvinit alike init scheme with a /etc/inittab file, do:
@@ -44,6 +45,26 @@ and tell init to re-read its configuration, e.g.:
  # init q
 

+

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: +
+ # 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
+ stop on shutdown
+ respawn /sbin/runsvdir-start
+ EOT
+
+and tell init to re-read its configuration, e.g.: +
+ # init q
+
+

Using with *BSD init

If your system uses a BSD alike init scheme with a /etc/rc.local script, do: -- cgit 1.4.1