Stop parameter is ignored in service
the following
service { "vserver_$name":
provider=>"base",
start=>"$vserver_bin start", stop=>"$vserver_bin stop",
restart=> "$vserver_bin restart",
status=> "$vserver_bin running", ensure=>$ensure
}
should run the command specified by stop parameter if the service is running, but it does not as you can see from output.
debug: vserver_test(provider=base): Executing "/usr/sbin/vserver test running"
debug: vserver_test(provider=base): vserver_test status returned ""
debug: //vservertest/vsguest[test]/service=vserver_test: Changing ensure
debug: //vservertest/vsguest[test]/service=vserver_test: 1 change(s)
debug: //vservertest/vsguest[test]/service=vserver_test/ensure: setting stopped (currently running)
notice: //vservertest/vsguest[test]/service=vserver_test/ensure: ensure changed 'running' to 'stopped'
System is fedora 4. puppet 0.20.0
Martin