Don't define ensure for psacct service on Ubuntu, init script has no status command
This commit is contained in:
parent
5fd54dfcfc
commit
3678ae46f9
1 changed files with 8 additions and 5 deletions
|
@ -23,7 +23,7 @@ class psacct {
|
||||||
class psacct::linux {
|
class psacct::linux {
|
||||||
|
|
||||||
package { "psacct":
|
package { "psacct":
|
||||||
name => $operatingsystem ? {
|
name => $::operatingsystem ? {
|
||||||
ubuntu => "acct",
|
ubuntu => "acct",
|
||||||
default => "psacct",
|
default => "psacct",
|
||||||
},
|
},
|
||||||
|
@ -31,11 +31,14 @@ class psacct::linux {
|
||||||
}
|
}
|
||||||
|
|
||||||
service { "psacct":
|
service { "psacct":
|
||||||
name => $operatingsystem ? {
|
name => $::operatingsystem ? {
|
||||||
ubuntu => "acct",
|
"ubuntu" => "acct",
|
||||||
default => "psacct",
|
default => "psacct",
|
||||||
},
|
},
|
||||||
ensure => running,
|
ensure => $operatingsystem ? {
|
||||||
|
"ubuntu" => undef,
|
||||||
|
default => running,
|
||||||
|
},
|
||||||
enable => true,
|
enable => true,
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
require => Package["psacct"],
|
require => Package["psacct"],
|
||||||
|
|
Loading…
Add table
Reference in a new issue