freebsd-dev/etc/rc.d
Doug Barton 0a6cd3ac6d Update how accounting log files are rotated.
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.
2011-02-22 21:13:40 +00:00
..
abi
accounting Update how accounting log files are rotated. 2011-02-22 21:13:40 +00:00
addswap Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
adjkerntz
amd Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
apm
apmd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
archdep Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
atm1
atm2
atm3
auditd
bgfsck In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
bluetooth Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
bootparams
bridge Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
bsnmpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
bthidd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ccd
cleanvar Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
cleartmp Avoid to try to remove suj journal file (.sujournal) and conventional 2010-09-05 05:44:40 +00:00
cron
DAEMON
ddb This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
defaultroute /etc/rc.d/defaultroute currently bails immediately if all interfaces 2010-09-29 13:08:23 +00:00
devd Add pidfile [1] 2010-12-27 22:52:47 +00:00
devfs Do not check for existence of symlink source for the link action. This 2010-01-23 11:42:31 +00:00
dhclient
dmesg
dumpon This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
encswap
faith Remove a circular dependency on routing 2009-10-17 21:09:15 +00:00
FILESYSTEMS
fsck In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
ftp-proxy Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ftpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
gbde
geli Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
geli2 Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
gptboot Add gptboot_enable rc variable, which allows to turn gptboot reporting off in 2010-11-24 15:25:17 +00:00
gssd Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
hastd Add missing KEYWORD line. 2010-02-19 09:18:26 +00:00
hcsecd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
hostapd
hostid This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
hostid_save This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
hostname In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
inetd
initrandom This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
ip6addrctl Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces. 2010-09-13 19:55:40 +00:00
ipfilter Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipfs Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipfw Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
ipmon Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not 2010-08-01 15:41:00 +00:00
ipnat Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipsec Fix the typo mentioned in the PR, and one additional. 2009-08-23 05:56:54 +00:00
ipxrouted
jail Implement the idea of parallel-only-at-start-time in a cleaner, more 2010-03-07 04:26:21 +00:00
kadmind
kerberos
keyserv Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
kldxref
kpasswdd
ldconfig Don't require /usr/lib/aout to be on the system. Test for its 2011-01-06 21:09:22 +00:00
local
localpkg
lockd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
LOGIN
lpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
Makefile Add gptboot script that is responsible for: 2010-09-24 19:53:55 +00:00
mdconfig This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
mdconfig2 Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
mixer
motd In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
mountcritlocal Add a sync to the shutdown step. In the common case this will be harmless 2010-11-25 18:20:28 +00:00
mountcritremote
mountd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
mountlate
moused In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
mroute6d Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
mrouted
msgs
named In the case where named_chroot_autoupdate is NOT set, but 2010-04-28 22:29:17 +00:00
natd
netif Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces. 2010-09-13 19:55:40 +00:00
netoptions Add $ipv6_privacy to support net.inet6.ip6.use_tempaddr. Note that this 2010-09-13 19:52:46 +00:00
NETWORKING Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
newsyslog In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
nfscbd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nfsclient In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
nfsd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nfsserver
nfsuserd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nisdomain Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
nscd Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
nsswitch Prefer echo over printf 2010-09-27 15:55:39 +00:00
ntpd Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
ntpdate Allow use of -6 option to "server" and "peer" in ntp.conf. 2010-01-30 16:34:52 +00:00
othermta
pf Add pf in quiet mode 2010-12-17 09:38:55 +00:00
pflog Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
pfsync Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
power_profile
powerd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ppp Protect cross-script invocation by checking that the target script exists. 2009-09-14 16:52:38 +00:00
pppoed
pwcheck
quota Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
random
rarpd
resolv
rfcomm_pppd_server Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
root
route6d Add an extension of set_rcvar(), a new function set_rcvar_obsolete(), 2009-09-12 22:19:48 +00:00
routed Add an extension of set_rcvar(), a new function set_rcvar_obsolete(), 2009-09-12 22:19:48 +00:00
routing Better handling of ipv6_default_interface using 2010-04-26 15:31:58 +00:00
rpcbind Let rpcbind clean up after itself 2011-01-31 21:03:08 +00:00
rtadvd Use ipv6if() when $rtadvd_interfaces="AUTO". 2009-09-26 19:00:47 +00:00
rtsold Add the shutdown KEYWORD. 2010-02-27 19:02:21 +00:00
rwho Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
savecore This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
sdpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
securelevel
sendmail Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
serial With uart(4) default, change /dev/cuad# to /dev/cuau# and 2008-07-19 20:12:02 +00:00
SERVERS This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
sppp
sshd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
statd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
static_arp Set svn:executable to *. 2010-01-11 23:32:36 +00:00
stf Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
swap1 Backout previous commit due to PEBKAC 2009-03-11 12:55:12 +00:00
syscons Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
sysctl This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00
syslogd
timed Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
tmp Use an unique directory name instead of hardcoded /tmp/.diskless. 2010-03-13 12:02:44 +00:00
ubthidhci Remove trailing white space. No functional changes. 2010-05-14 04:53:57 +00:00
ugidfw Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
var Let rc and periodic infrastructure and newsyslog use the utmpx files. 2010-01-13 19:07:48 +00:00
virecover
watchdogd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
wpa_supplicant Move is_wired_interface() from rc.d/wpa_supplicant into network.subr, 2009-08-23 05:47:19 +00:00
ypbind Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
yppasswdd Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
ypserv Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypset Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypupdated Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypxfrd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
zfs Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
zvol This change does the following for the scripts that run up through 2010-05-19 19:03:19 +00:00