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 +++++++++++++++++++++++-- package/CHANGES | 2 ++ 2 files changed, 25 insertions(+), 2 deletions(-) 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: diff --git a/package/CHANGES b/package/CHANGES index 40b22ab..e2d2320 100644 --- a/package/CHANGES +++ b/package/CHANGES @@ -8,6 +8,8 @@ source port for each log message sent through udp. * runit.c: fix typo in error messages (thx Matthew R. Dempsky); minor rewording. + * doc/useinit.html: add instructions on how to use with upstart (thx + Lloyd Zusman). 1.7.2 Tue, 21 Nov 2006 15:13:47 +0000 -- cgit 1.4.1