mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
d5c65817b7
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
22 lines
335 B
Bash
22 lines
335 B
Bash
#!/bin/sh
|
|
|
|
# Startup script for munin-node
|
|
|
|
function munin_start {
|
|
/usr/sbin/munin-node
|
|
}
|
|
|
|
function munin_stop {
|
|
killall munin-node
|
|
}
|
|
|
|
if [ "$1" == 'start' ]; then
|
|
munin_start
|
|
elif [ "$1" == 'stop' ]; then
|
|
munin_stop
|
|
elif [ "$1" == 'restart' ]; then
|
|
munin_stop
|
|
munin_start
|
|
else
|
|
echo "usage: rc.munin-node start|stop|restart"
|
|
fi
|