3 # sysstat Sysstat system monitoring utility
5 # chkconfig: 2345 35 55
7 # description: Sysstat system monitoring tools (sar,iostat,mpstat)
10 # Source function library
11 . /etc/rc.d/init.d/functions
13 [ -f /etc/sysconfig/sysstat ] && . /etc/sysconfig/sysstat
16 # Check if the service is already running?
17 if [ ! -f /var/lock/subsys/sysstat ]; then
18 msg_starting "system activity data collector"
19 daemon /usr/lib/sa/sadc $SADC_OPTIONS -
21 [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/sysstat
23 msg_already_running "system activity data collector"
28 if [ -f /var/lock/subsys/sysstat ]; then
30 msg_stopping "system activity data collector"
32 rm -f /var/lock/subsys/sysstat >/dev/null 2>&1
34 msg_not_running "system activity data collector"
39 if [ -f /var/lock/subsys/sysstat ]; then
43 msg_not_running "system activity data collector"
49 # See how we were called.
72 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"