From fce69b46eecf447a515475d65327da2c92bfdc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Wed, 23 Apr 2014 14:14:02 +0200 Subject: [PATCH] added better chaosc init script to repo --- config_files/chaosc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 config_files/chaosc diff --git a/config_files/chaosc b/config_files/chaosc new file mode 100755 index 0000000..ea5b027 --- /dev/null +++ b/config_files/chaosc @@ -0,0 +1,21 @@ +#!/sbin/runscript + +depend() { + need net + use dns localmount + after bootmisc + provide chaosc +} + + +start() { + ebegin "starting chaosc" + start-stop-daemon --start --pidfile /var/run/chaosc.pid --make-pidfile --user sarah --group sarah --background --exec /usr/bin/chaosc + eend $? +} + +stop() { + ebegin "stopping chaosc" + start-stop-daemon --stop --quiet --pidfile /var/run/chaosc.pid + eend $? +}