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,
|
refreshonly => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
augeas { "enable-accounting":
|
service { "accounting":
|
||||||
context => "/files/etc/rc.conf.local",
|
enable => true,
|
||||||
changes => [ "ins 0 before 1", "set 0 accounting=YES" ],
|
|
||||||
onlyif => "match *[.='accounting=YES'] size == 0",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue