inetd: Fix absent service disable from inetd.conf.
This commit is contained in:
parent
44ce682970
commit
2d45a97153
1 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,11 @@ define inetd::service($ensure = present) {
|
|||
},
|
||||
unless => $ensure ? {
|
||||
"present" => "egrep '^${name}[[:space:]]' /etc/inetd.conf",
|
||||
"absent" => "egrep '^#${name}[[:space:]]' /etc/inetd.conf",
|
||||
"absent" => undef,
|
||||
},
|
||||
onlyif => $ensure ? {
|
||||
"present" => undef,
|
||||
"absent" => "egrep '^${name}[[:space:]]' /etc/inetd.conf",
|
||||
},
|
||||
path => "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
|
||||
notify => Service["inetd"],
|
||||
|
|
Loading…
Add table
Reference in a new issue