psacct: Use rcctl for enabling accounting on OpenBSD.
This commit is contained in:
parent
ac68431c02
commit
706a2f243d
1 changed files with 2 additions and 4 deletions
|
@ -76,10 +76,8 @@ class psacct::openbsd {
|
|||
refreshonly => true,
|
||||
}
|
||||
|
||||
augeas { "enable-accounting":
|
||||
context => "/files/etc/rc.conf.local",
|
||||
changes => [ "ins 0 before 1", "set 0 accounting=YES" ],
|
||||
onlyif => "match *[.='accounting=YES'] size == 0",
|
||||
service { "accounting":
|
||||
enable => true,
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue