mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-14 17:01:32 +02:00
an SNMP polling daemon which writes the polled values to an RRD database http://memberwebs.com/stef/software/rrdbot/
29 lines
507 B
Plaintext
29 lines
507 B
Plaintext
#!/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 $?
|
|
}
|
|
|