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 {
|
||||
|
||||
package { "psacct":
|
||||
name => $operatingsystem ? {
|
||||
name => $::operatingsystem ? {
|
||||
ubuntu => "acct",
|
||||
default => "psacct",
|
||||
},
|
||||
|
@ -31,11 +31,14 @@ class psacct::linux {
|
|||
}
|
||||
|
||||
service { "psacct":
|
||||
name => $operatingsystem ? {
|
||||
ubuntu => "acct",
|
||||
default => "psacct",
|
||||
name => $::operatingsystem ? {
|
||||
"ubuntu" => "acct",
|
||||
default => "psacct",
|
||||
},
|
||||
ensure => $operatingsystem ? {
|
||||
"ubuntu" => undef,
|
||||
default => running,
|
||||
},
|
||||
ensure => running,
|
||||
enable => true,
|
||||
hasstatus => true,
|
||||
require => Package["psacct"],
|
||||
|
|
Loading…
Add table
Reference in a new issue