aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-09 23:21:24 +0200
committertv <tv@xso>2011-09-09 23:21:24 +0200
commit0285e30e054a4f8bce634a9aec314cd5aaa1e63a (patch)
treeb18a725353217d13cfe415e677e5ba7932d6b746
parentdc45c9c947275956762f29095b56bb0d6d02fd89 (diff)
//Reaktor: the user is called Reaktor
-rw-r--r--README.md21
-rwxr-xr-xcommands/reload2
2 files changed, 13 insertions, 10 deletions
diff --git a/README.md b/README.md
index 464af01..05af8ef 100644
--- a/README.md
+++ b/README.md
@@ -2,25 +2,28 @@
## Quickstart
- ## 1. prepare Reaktor for nobody
+ ## 1. prepare Reaktor
//Reaktor/install
- ## 2. marry Reaktor with /sbin/init
+ ## 2. create a dedicated user
+ useradd Reaktor
- ## 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]
+ ## 3. marry Reaktor with /sbin/init
+
+ ## 3a. /etc/inittab-like foo
+ echo 10:2345:respawn:/bin/su Reaktor -c /krebs/Reaktor/index >>/etc/inittab
+ # or 10:2345:respawn:/usr/bin/sudo -u Reaktor /krebs/Reaktor/index
+ # if Reaktor's shell is /bin/false or similar
+ # [check with e.g getent passwd Reaktor]
telinit q
- ## 2b. upstart-like foo
+ ## 3b. 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
+ exec /usr/bin/sudo -u Reaktor /krebs/Reaktor/index
EOF
start Reaktor
diff --git a/commands/reload b/commands/reload
index 1881be7..2b78b17 100755
--- a/commands/reload
+++ b/commands/reload
@@ -1,2 +1,2 @@
#! /bin/sh
-exec pkill -U nobody
+exec pkill -U Reaktor