From a472f94460ce2b5600588a6e8b2c207d7670be1b Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 8 Jun 2011 14:21:48 +0300 Subject: [PATCH] Fixed service status check in inetd::service --- inetd/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"],