aboutsummaryrefslogtreecommitdiffstats
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
commit6fff79546f484621f77db786cce0b8ec7e2949a5 (patch)
tree21573709b3a2542b6fca2aaf30f815be4e12a3ca
parentd1d3677d98873306d8a3991ab67dd85b6ac4ad6e (diff)
//Reaktor/README.md: tell about upstart
-rw-r--r--README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index a45770d..031d195 100644
--- a/README.md
+++ b/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