diff options
Diffstat (limited to 'system/munin-node/rc.munin-node')
-rw-r--r-- | system/munin-node/rc.munin-node | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/system/munin-node/rc.munin-node b/system/munin-node/rc.munin-node new file mode 100644 index 0000000000..ee0327730c --- /dev/null +++ b/system/munin-node/rc.munin-node @@ -0,0 +1,22 @@ +#!/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 |