Skip to content

Commit

Permalink
add accounting support
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie committed Aug 20, 2017
1 parent 3645693 commit 45ce528
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sysclean.pl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,15 @@ sub add_expected_rcctl
$self->err(1, "can't read enabled daemons and services");
while (<$cmd>) {
chomp;
if ('apmd' eq $_) {
if ('accounting' eq $_) {
$self->{expected}{'/var/account/acct'} = 1;
$self->{expected}{'/var/account/acct.0'} = 1;
$self->{expected}{'/var/account/acct.1'} = 1;
$self->{expected}{'/var/account/acct.2'} = 1;
$self->{expected}{'/var/account/acct.3'} = 1;
$self->{expected}{'/var/account/savacct'} = 1;
$self->{expected}{'/var/account/usracct'} = 1;
} elsif ('apmd' eq $_) {
$self->{expected}{'/etc/apm'} = 1;
$self->{expected}{'/etc/apm/suspend'} = 1;
$self->{expected}{'/etc/apm/hibernate'} = 1;
Expand Down

0 comments on commit 45ce528

Please sign in to comment.