summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-11-01 00:22:45 +0000
committerache <ache@FreeBSD.org>1995-11-01 00:22:45 +0000
commite702f25f2b2d7ffad2980c0907e73b0059568623 (patch)
tree2f2929f4d74fb944603372870dce1e1897c2a2e3 /etc/rc
parent2457c77564e4384d49f9fcfd57b66e3619625e27 (diff)
downloadFreeBSD-src-e702f25f2b2d7ffad2980c0907e73b0059568623.zip
FreeBSD-src-e702f25f2b2d7ffad2980c0907e73b0059568623.tar.gz
If accounting becomes enabled and /var/account/acct
not exist, touch it, or accounting is never started (it must be pre-existen file).
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index fa6e930..185aac9 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud