diff options
author | Jonathan Chapman <glitch@glitchwrks.com> | 2015-10-09 23:50:33 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-10-09 23:50:56 +0700 |
commit | d5c65817b72ac6a07fa3fd21bf47b8b2e6f1108c (patch) | |
tree | 3525ea6c558fdff3bec910dc1ea97de71ae85d1e /system/munin-node/rc.munin-node | |
parent | 1673835d5a699ff9292dd33bef731a44466bfc2b (diff) | |
download | slackbuilds-d5c65817b72ac6a07fa3fd21bf47b8b2e6f1108c.tar.gz |
system/munin-node: Added (Statistics gathering client for Munin).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 |