1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 09:45:12 +03:00
aports/testing/rrdbot/rrdbotd.initd
Jesse Young ae1967b66e Replace instances of "--chuid" to "--user" in initd scripts
Fixes #776

Signed-off-by: Jesse Young <jlyo@jlyo.org>
2011-12-01 07:15:51 +00:00

28 lines
506 B
Text

#!/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" \
--user ${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 $?
}