summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-06 20:23:00 +0200
committertv <tv@xso>2011-09-06 20:23:00 +0200
commit35a91ba10b76be13ef61f8c61b989d73a13292cf (patch)
tree4f63bd86317f4b6953c0401d531acc713a982d18
parent06b3cedcd5fb744eb7604165cb53852619e2e0af (diff)
//Reaktor/README.md: tell about upstart
-rw-r--r--Reaktor/README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/Reaktor/README.md b/Reaktor/README.md
index a45770d9..031d195c 100644
--- a/Reaktor/README.md
+++ b/Reaktor/README.md
@@ -2,10 +2,25 @@
## Quickstart
+ ## 1. prepare Reaktor for nobody
//Reaktor/install
+ ## 2. marry Reaktor with /sbin/init
+
+ ## 2a. /etc/inittab-like foo
echo 10:2345:respawn:/bin/su nobody -c /krebs/Reaktor/index >>/etc/inittab
# or 10:2345:respawn:/usr/bin/sudo -u nobody /krebs/Reaktor/index
# if nobody's shell is /bin/false or similar
-
+ # [check with e.g getent passwd nobody]
telinit q
+
+ ## 2b. upstart-like foo
+
+ cat > /etc/init/Reaktor.conf <EOF
+ description "Krebs Reaktor"
+ author "The Ministerium"
+ stop on runlevel [016]
+ respawn
+ exec /usr/bin/sudo -u nobody /krebs/Reaktor/index
+ EOF
+ start Reaktor