Re: [Puppet Users] how puppet restart a service

2013-03-15 Thread Dan White
Try this: service { "lighttpd": ensure => running, enable => true, hasrestart => true, hasstatus => true, restart=> "/sbin/service lighttpd restart", } The “enable” parameter enables the service to start at boot. The “ensure” parameter ensures the service is running.

Re: [Puppet Users] how puppet restart a service

2013-03-15 Thread 尹川51web
you could try exec type, http://docs.puppetlabs.com/references/2.7.latest/type.html#exec or MColletive http://docs.puppetlabs.com/mcollective On Fri, Mar 15, 2013 at 3:06 PM, 陈士超 wrote: > i do like this: > service{ > "lighttpd": > hasrestart => true, > hasstatus => true, > restart => "/sbin/se

[Puppet Users] how puppet restart a service

2013-03-15 Thread 陈士超
i do like this: service{ "lighttpd": hasrestart => true, hasstatus => true, restart => "/sbin/service lighttpd restart", } But it dose not work -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving em