3 # sysstat Sysstat system monitoring utility
5 # chkconfig: 2345 35 65
7 # description: Sysstat system monitoring tools (sar,iostat,mpstat)
11 # Source function library
12 . /etc/rc.d/init.d/functions
14 [ -f /etc/sysconfig/sysstat ] && . /etc/sysconfig/sysstat
17 # Check if the service is already running?
18 if [ -f /var/lock/subsys/sysstat ]; then
19 msg_already_running "System Activity Data Collector"
23 msg_starting "System Activity Data Collector"
24 daemon /usr/lib/sa/sadc $SADC_OPTIONS -
26 [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/sysstat
30 if [ ! -f /var/lock/subsys/sysstat ]; then
31 msg_not_running "System Activity Data Collector"
36 msg_stopping "System Activity Data Collector"
38 rm -f /var/lock/subsys/sysstat >/dev/null 2>&1
42 if [ ! -f /var/lock/subsys/sysstat ]; then
43 msg_not_running "System Activity Data Collector"
53 # See how we were called.
76 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"