3 # sysstat Sysstat system monitoring utility
5 # chkconfig: 2345 35 65
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_already_running "System Activity Data Collector"
22 msg_starting "System Activity Data Collector"
23 daemon /usr/lib/sa/sadc $SADC_OPTIONS -
25 [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/sysstat
29 if [ ! -f /var/lock/subsys/sysstat ]; then
30 msg_not_running "System Activity Data Collector"
35 msg_stopping "System Activity Data Collector"
37 rm -f /var/lock/subsys/sysstat >/dev/null 2>&1
41 if [ ! -f /var/lock/subsys/sysstat ]; then
42 msg_not_running "System Activity Data Collector"
52 # See how we were called.
75 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"