diff --git a/inetd/manifests/init.pp b/inetd/manifests/init.pp index 24fe6d2..b4bc0c9 100644 --- a/inetd/manifests/init.pp +++ b/inetd/manifests/init.pp @@ -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"],