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
23 # See how we were called.
28 daemon //usr/bin/atsadc /var/log/atsar/atsa`date +%d`
30 rm -f /var/log/atsar/ftpstat 2> /dev/null
31 rm -f /var/log/atsar/httpstat 2> /dev/null
33 if [ -f /etc/atsar.conf ]
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/atsar
42 rm -f /var/lock/subsys/atsar
55 echo "Usage: $0 {start|stop|status|reload|restart}"