Fixed service status check in inetd::service
This commit is contained in:
parent
edbd519dc0
commit
a472f94460
1 changed files with 2 additions and 2 deletions
|
@ -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"],
|
||||
|
|
Loading…
Add table
Reference in a new issue