mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-04 00:56:07 +01:00
23 lines
335 B
Text
23 lines
335 B
Text
|
#!/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
|