From d5c65817b72ac6a07fa3fd21bf47b8b2e6f1108c Mon Sep 17 00:00:00 2001 From: Jonathan Chapman Date: Fri, 9 Oct 2015 23:50:33 +0700 Subject: system/munin-node: Added (Statistics gathering client for Munin). Signed-off-by: Willy Sudiarto Raharjo --- system/munin-node/rc.munin-node | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 system/munin-node/rc.munin-node (limited to 'system/munin-node/rc.munin-node') diff --git a/system/munin-node/rc.munin-node b/system/munin-node/rc.munin-node new file mode 100644 index 0000000000000..ee0327730c9a3 --- /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 -- cgit v1.2.3