diff options
Diffstat (limited to 'testing/rrdbot/rrdbotd.initd')
-rw-r--r-- | testing/rrdbot/rrdbotd.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/rrdbot/rrdbotd.initd b/testing/rrdbot/rrdbotd.initd new file mode 100644 index 0000000000..d0fcdc4a6d --- /dev/null +++ b/testing/rrdbot/rrdbotd.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript + +name=rrdbotd +daemon=/usr/sbin/$name +pidfile=${rrdbotd_pidfile:-/var/run/rrdbotd/rrdbotd.pid} + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --pidfile "$pidfile" \ + --chuid ${rrdbotd_user:-rrdbotd}:${rrdbotd_group:-rrdbotd} \ + --exec ${daemon} -- ${rrdbotd_opts} -p "$pidfile" + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet \ + --pidfile "$pidfile" \ + --exec ${daemon} + eend $? +} + |