3 # atsar This shell script takes care of initializing
4 # the atsar system activity report subsystem.
6 # chkconfig: 2345 85 15
7 # description: Atsar is a system activity report logging system.
10 # Source function library.
11 if [ -f /etc/rc.d/init.d/functions ]
13 . /etc/rc.d/init.d/functions
18 # Check binaries and configuration files.
19 [ -f /usr/bin/atsadc ] || exit 0
22 # See how we were called.
25 # Check if the service is already running?
26 if [ ! -f /var/lock/subsys/atsar ]; then
29 daemon /usr/bin/atsadc /var/log/atsar/atsa`date +%d`
31 rm -f /var/log/atsar/ftpstat 2> /dev/null
32 rm -f /var/log/atsar/httpstat 2> /dev/null
34 if [ -f /etc/atsar.conf ]; then
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/atsar
41 msg_already_running atsar
45 if [ -f /var/lock/subsys/atsar ]; then
47 daemon rm -f /var/lock/subsys/atsar
66 msg_usage "$0 {start|stop|restart|force-reload|status}"