slackbuilds_ponce/system/munin-node/rc.munin-node
Jonathan Chapman d5c65817b7 system/munin-node: Added (Statistics gathering client for Munin).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2015-10-09 23:50:56 +07:00

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