packages: psacct/acct.sysinit - accton now requires argument ("off" to turn...
qboosh
qboosh at pld-linux.org
Sat Jan 29 11:33:51 CET 2011
Author: qboosh Date: Sat Jan 29 10:33:50 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- accton now requires argument ("off" to turn off accounting)
---- Files affected:
packages/psacct:
acct.sysinit (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/psacct/acct.sysinit
diff -u packages/psacct/acct.sysinit:1.1 packages/psacct/acct.sysinit:1.2
--- packages/psacct/acct.sysinit:1.1 Tue Aug 12 21:31:37 2003
+++ packages/psacct/acct.sysinit Sat Jan 29 11:33:45 2011
@@ -21,30 +21,30 @@
# called by rc.sysinit (or manually by administrator)
if is_yes "$ACCT_RUN"; then
run_cmd "Turning on process accounting" \
- /sbin/accton "$ACCT_LOG_FILE"
+ /sbin/accton "$ACCT_LOG_FILE"
fi
- ;;
+ ;;
stop)
# called by rc.shutdown (or manually by administrator)
# NOTE: there is no way to check if accounting is enabled in kernel -
- # so always try to turn off
- run_cmd "Turning off process accounting" /sbin/accton
+ # so always try to turn off
+ run_cmd "Turning off process accounting" /sbin/accton off
;;
restart|reload|force-reload)
# called by logrotate (or manually by administrator)
# NOTE: there is no way to check if accounting is enabled in kernel -
- # so we must rely on sysconfig setting here
+ # so we must rely on sysconfig setting here
if is_yes "$ACCT_RUN"; then
run_cmd "Turning on process accounting" \
/sbin/accton "$ACCT_LOG_FILE"
else
- run_cmd "Turning off process accounting" /sbin/accton
+ run_cmd "Turning off process accounting" /sbin/accton off
fi
- ;;
+ ;;
*)
- # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
+ # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
msg_usage "$0 {start|stop|restart|reload|force-reload}"
- exit 1
+ exit 1
esac
exit 0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/psacct/acct.sysinit?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list