summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2003-06-22 18:25:31 +0000
committerGerrit Pape <pape@smarden.org>2003-06-22 18:25:31 +0000
commit6f61edc615e01b95e70e8ef2220ae6d4a3003c88 (patch)
treebf869075e2e237d4cee9f692df57bac802e1a140 /etc
parentfcdd951bae15d759d3f7d0aa89ad0b278859fa34 (diff)
downloadrunit-6f61edc615e01b95e70e8ef2220ae6d4a3003c88.tar.gz
runit-6f61edc615e01b95e70e8ef2220ae6d4a3003c88.tar.xz
runit-6f61edc615e01b95e70e8ef2220ae6d4a3003c88.zip
* doc/index.html, doc/install.html, doc/replaceinit.html, doc/useinit.html:
    how to install and configure runit on MacOSX.
  * svlogd.c: fix incorrect handling of processor's state file; minor code
    cleanup.
  * runit-init.c: exit 0 on wrong usage.
0.10.0
Diffstat (limited to 'etc')
-rw-r--r--etc/macosx/StartupItems/StartupParameters.plist11
-rwxr-xr-xetc/macosx/StartupItems/runit21
2 files changed, 32 insertions, 0 deletions
diff --git a/etc/macosx/StartupItems/StartupParameters.plist b/etc/macosx/StartupItems/StartupParameters.plist
new file mode 100644
index 0000000..14b5116
--- /dev/null
+++ b/etc/macosx/StartupItems/StartupParameters.plist
@@ -0,0 +1,11 @@
+{
+  Description     = "runit service supervision";
+  Provides        = ("runit");
+  Requires        = ("Disks");
+  OrderPreference = "None";
+  Messages =
+  {
+    start = "Starting runit service supervision";
+    stop  = "Stopping runit service supervision";
+  };
+}
diff --git a/etc/macosx/StartupItems/runit b/etc/macosx/StartupItems/runit
new file mode 100755
index 0000000..4a10bcc
--- /dev/null
+++ b/etc/macosx/StartupItems/runit
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+##
+# runit
+##
+
+. /etc/rc.common
+
+StartService() {
+  ConsoleMessage "Starting runit service supervision"
+  /bin/csh -cf '/etc/runit/2 &'
+}
+StopService() {
+  ConsoleMessage "Stopping runit service supervision"
+  svwaitdown -xk -t34 /service/*
+}
+RestartService() {
+  return 0
+}
+
+RunService "$1"