#!/bin/sh # # chkconfig: 2345 27 73 # description: HotSaNIC. Front end of RRD TOOL # Source function library. . /etc/rc.d/init.d/functions RRDGRAPH=/usr/local/HotSaNIC/rrdgraph [ -f $RRDGRAPH ] || exit 0 # See how we were called. case "$1" in start) # Start daemons. echo -n "Starting RRD_GRAPH: " $RRDGRAPH start echo ;; stop) # Stop daemons. echo -n "Stopping RRD_GRAPH: " $RRDGRAPH stop echo ;; restart) $0 stop $0 start ;; *) echo "Usage: RRD_GRAPH {start|stop|restart}" exit 1 esac exit 0