inetd: Fix absent service disable from inetd.conf.

This commit is contained in:
Timo Makinen 2014-09-10 10:39:36 +03:00
parent 44ce682970
commit 2d45a97153

View file

@ -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"],