Use native service provider on OpenBSD
This commit is contained in:
parent
a0c2c84e0d
commit
b0bec99e0c
12 changed files with 17 additions and 197 deletions
|
@ -29,18 +29,15 @@ class spamassassin::common {
|
|||
}
|
||||
|
||||
service { "spamassassin":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
binary => $::operatingsystem ? {
|
||||
"openbsd" => "/usr/local/bin/spamd -d",
|
||||
default => undef,
|
||||
},
|
||||
start => $::operatingsystem ? {
|
||||
"openbsd" => "/usr/local/bin/spamd -d -c -H -m 5",
|
||||
default => undef,
|
||||
},
|
||||
hasstatus => true,
|
||||
require => Package["spamassassin"],
|
||||
ensure => running,
|
||||
enable => true,
|
||||
require => Package["spamassassin"],
|
||||
}
|
||||
|
||||
if $::operatingsystem == "OpenBSD" {
|
||||
Service["spamassassin"] {
|
||||
flags => "-c -H -P",
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue