added better chaosc init script to repo

This commit is contained in:
Stefan Kögl 2014-04-23 14:14:02 +02:00
parent 007ec565e1
commit fce69b46ee
1 changed files with 21 additions and 0 deletions

21
config_files/chaosc Executable file
View File

@ -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 $?
}