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
14 # See how we were called.
17 # Check if the service is already running?
18 if [ ! -f /var/lock/subsys/sysstat ]; then
19 msg_starting "system activity data collector"
20 daemon /usr/lib/sa/sadc
22 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sysstat
24 msg_already_running "system activity data collector"
30 if [ -f /var/lock/subsys/sysstat ]; then
31 msg_stopping "system activity data collector"
33 rm -f /var/lock/subsys/sysstat >/dev/null 2>&1
35 msg_not_running "system activity data collector"
47 msg_usage "$0 {start|stop|status|restart}"