diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-11-01 00:22:45 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-11-01 00:22:45 +0000 |
commit | bf66fd8815553faf1f410dfe73a79cd943d875bc (patch) | |
tree | 2f2929f4d74fb944603372870dce1e1897c2a2e3 /etc | |
parent | 1b3f472e51d0a3625a8e7cd1c2126aca25e27b64 (diff) | |
download | src-bf66fd8815553faf1f410dfe73a79cd943d875bc.tar.gz src-bf66fd8815553faf1f410dfe73a79cd943d875bc.zip |
If accounting becomes enabled and /var/account/acct
not exist, touch it, or accounting is never started
(it must be pre-existen file).
Notes
Notes:
svn path=/head/; revision=11992
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.74 1995/10/28 23:32:26 pst Exp $ +# $Id: rc,v 1.75 1995/10/29 12:43:47 ache Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -257,7 +257,11 @@ if [ "$virecovery" != '/var/tmp/vi.recover/recover.*' ]; then fi if [ "X${accounting}" = X"YES" -a -d /var/account ]; then - echo 'turning on accounting'; accton /var/account/acct + echo 'turning on accounting' + if [ ! -e /var/account/acct ]; then + touch /var/account/acct + fi + accton /var/account/acct fi # Now start up miscellaneous daemons that don't belong anywhere else |