Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37524524
en ru br
ALT Linux repos
S:12.7.4-alt1
5.0: 8.1.6-alt1
4.1: 8.1.2-alt1
4.0: 7.1.4-alt1
3.0: 6.0.0-alt1

Group :: Monitoring
RPM: sysstat

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh
#
# sysstat Reset the system activity logs
#
# chkconfig: 12345 01 99
# description: Reset the system activity logs
### BEGIN INIT INFO
# Provides: sysstat
# Required-Start: $local_fs $syslog
# Required-Stop:
# Default-Start: 1 2 3 4 5
# Default-Stop:
# Short-Description: Start/stop sysstat's sadc
# Description: Sysstat contains system performance tools for Linux
# The init file runs the sadc command in order to write
# the "LINUX RESTART" mark to the daily data file
### END INIT INFO

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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin