diff --git a/psacct.init b/psacct.init index b6c5956..e261f51 100755 --- a/psacct.init +++ b/psacct.init @@ -13,16 +13,23 @@ # The location of the accounting file ACCTFILE=/var/account/pacct -# See how we were called. -case "$1" in - start) +start() { [ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE action $"Starting process accounting: " /sbin/accton $ACCTFILE touch /var/lock/subsys/psacct - ;; - stop) +} + +stop() { action $"Shutting down process accounting: " /sbin/accton rm -f /var/lock/subsys/psacct +} +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop ;; status) if [ -e /var/lock/subsys/psacct ]; then diff --git a/psacct.spec b/psacct.spec index db680c8..14fa392 100644 --- a/psacct.spec +++ b/psacct.spec @@ -11,7 +11,7 @@ Summary: Utilities for monitoring process activities. Name: psacct Version: 6.3.2 -Release: 23 +Release: 24 License: GPL Group: Applications/System Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz @@ -138,6 +138,10 @@ fi %{_infodir}/accounting.info.gz %changelog +* Thu Aug 22 2002 Mike A. Harris 6.3.2-24 +- Fixed initscript reload/restart by creating start/stop functions and + making everything use them (#72261) + * Tue Aug 6 2002 Mike A. Harris 6.3.2-23 - Fixed chkconfig issue in rpm scripts (#61191) - Excludearch ia64, not taking the time to debug/troubleshoot random