puppet restart service failure
- by Roman
help me please with service restart
# changing iptables`
file { "/etc/sysconfig/iptables":
ensure => "present",
content => template("all_in_one/iptables.erb"),
owner => root,
group => root,
mode => 600,
}
service { "iptables":
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
subscribe => File["/etc/sysconfig/iptables"]
}
output is:
err Failed to call refresh: Could not restart Service[iptables]: Execution of '/sbin/service iptables restart' returned 1