#!/bin/sh # # sysstat Reset the system activity logs # # chkconfig: 12345 01 99 # description: Reset the system activity logs WITHOUT_RC_COMPAT=1 # Source function library. . /etc/init.d/functions LOCKFILE=/var/lock/subsys/sysstat RETVAL=0 # See how we were called. case "$1" in start|reload|restart|condreload|condrestart) action "Resetting the system activity logs:" LIBDIR/sa/sadc -F -L - RETVAL=$? # Mark as started regardless of exit status. touch "$LOCKFILE" ;; stop|condstop) rm -f "$LOCKFILE" ;; status) ;; *) msg_usage "${0##*/} {start|stop}" RETVAL=1 esac exit $RETVAL