hotsanic |
Subversion Repositories: |
Rev 21 | Rev 24 | |
---|---|---|
Line 19... | Line 19... | |
|
| |
echo "Starting rrdtimer..." |
echo "Starting rrdtimer..." | |
./rrdtimer.pl Dp |
./rrdtimer.pl Dp | |
;; |
;; | |
stop) |
stop) | |
echo "Saving rrdtimer folder..." |
./rrdgraph save | |
/usr/local/bin/mrw |
||
datum=`date '+%Y%m%d%H%M%S'` |
||
archiv=/opt_$datum.tgz |
||
tar cfz $archiv /opt/HotSaNIC |
||
/usr/local/bin/mro |
||
|
| |
echo "Stopping rrdtimer..." |
echo "Stopping rrdtimer..." | |
if [ -e "$PIDFILE" ]; then |
if [ -e "$PIDFILE" ]; then | |
PID=`cat "$PIDFILE"` |
PID=`cat "$PIDFILE"` | |
for nn in $PID ; do kill $nn; done |
for nn in $PID ; do kill $nn; done | |
else |
else | |
echo "pid-file not found, rrdtimer not running?!" |
echo "pid-file not found, rrdtimer not running?!" | |
fi |
fi | |
./clearall CLEAR_COUNTERS |
./clearall CLEAR_COUNTERS | |
;; | ||
save) | ||
echo "Saving rrdtimer folder..." | ||
/bin/mount / -o remount,rw,noatime | ||
datum=`date '+%Y%m%d%H%M%S'` | ||
archiv=/opt_$datum.tgz | ||
tar cfz $archiv /opt/HotSaNIC | ||
/bin/mount / -o remount,ro,noatime | ||
;; |
;; | |
status) |
status) | |
if [ -e $PIDFILE ]; then |
if [ -e $PIDFILE ]; then | |
echo "main process on PID `cat $PIDFILE` (according to PID-file)" |
echo "main process on PID `cat $PIDFILE` (according to PID-file)" | |
else |
else | |
Line 47... | Line 50... | |
restart) |
restart) | |
./rrdgraph stop |
./rrdgraph stop | |
./rrdgraph start |
./rrdgraph start | |
;; |
;; | |
*) |
*) | |
echo "usage: rrdgraph [start|stop|status|restart]" |
echo "usage: rrdgraph [start|stop|status|restart|save]" | |
;; |
;; | |
esac |
esac | |
|
|