diff --git a/inetd/manifests/init.pp b/inetd/manifests/init.pp index 209802a..56d89c7 100644 --- a/inetd/manifests/init.pp +++ b/inetd/manifests/init.pp @@ -91,8 +91,8 @@ define inetd::service($ensure = present) { "absent" => "ruby -pi -e 'sub(/^${name}(\\s+)/, \"#${name}\\\\1\")' /etc/inetd.conf", }, unless => $ensure ? { - "present" => "egrep '^tftp[[:space:]]' /etc/inetd.conf", - "absent" => "egrep '^#tftp[[:space:]]' /etc/inetd.conf", + "present" => "egrep '^${name}[[:space:]]' /etc/inetd.conf", + "absent" => "egrep '^#${name}[[:space:]]' /etc/inetd.conf", }, path => "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin", notify => Service["inetd"],