summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/accounting
Commit message (Collapse)AuthorAgeFilesLines
* - Don't log messages saying that accounting is being disabled and enabledjhb2012-05-021-3/+1
| | | | | | | | | | if the accounting log file is atomically replaced with a new file (such as during log rotation). - Simplify accounting log rotation a bit. There is no need to re-run accton(8) after renaming the new log file to it's real name. PR: kern/167321 Tested by: Jeremy Chadwick
* Prepare for the removal of set_rcvar() by changing the rcvar=dougb2012-01-141-1/+1
| | | | | | | | | | | | | | | assignments to the literal values it would have returned. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps.
* The new accounting file needs to be 644 so that unprivileged usersdougb2011-02-241-0/+1
| | | | can use lastcomm(1)
* Update how accounting log files are rotated.dougb2011-02-221-8/+32
| | | | | | | | | | | | | | | | The old version had a race between the time that the old file was cp'ed to acct.0 and the time that 'sa -s' was run that prevented the commands that occurred in the meantime from being backed up. It's also arguable that the old version was inefficient in using cp which can be a problem on a space-constrained system. This version avoids both problems, albeit it's considerably more complicated. The advantage of putting the log rotation in the rc.d script is that it can handle the _enable and _file questions without having to do gymnastics to discover either value in the periodic script. As a side effect of reviewing the rc.d script I cleaned it up a bit.
* Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d filesdougb2007-12-081-1/+0
| | | | | with theirs, so this information doesn't need to be in the live file. Having it in our CVS history is enough.
* Eliminate global symbols starting with an underscore from rc.dyar2006-12-301-0/+2
| | | | | | | | | scripts, except for mdconfig* and jail. Such symbols are reserved for the rc.subr internals. Most scripts can be fixed by just declaring _foo symbols as local: few scripts actually need them to be global. Discussed with: dougb in freebsd-rc
* Remove the requirement for the FreeBSD keyword as it no longermtm2004-10-071-1/+1
| | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.pjd2004-03-081-1/+1
| | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
* Remove scripts we don't use from requirement lines. These weremtm2004-03-051-1/+1
| | | | hold-overs from the initial NetBSD import.
* Remove checks for the FreeBSD OS.mtm2004-01-171-15/+9
|
* Luke Mewburn has indicated that they (NetBSD) are not interestedmtm2004-01-171-1/+1
| | | | | | in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated than necessary), starting with the NetBSD KEYWORD.
* Fix style bugs:schweikh2002-10-121-1/+1
| | | | | | | | | | * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line. Approved by: silence from gordon
* Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation ongordon2002-09-061-1/+1
| | | | OS-dependent case switches.
* Merge in all the changes that Mike Makonnen has been maintaining for agordon2002-06-131-6/+30
| | | | | | | | while. This is only the script pieces, the glue for the build comes next. Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson
* Import the NetBSD 1.5 RC system.obrien2001-06-161-0/+31
Note that `rc' and `rc.shutdown' could not be imported because we already have files with those names.
OpenPOWER on IntegriCloud