On Aug 6, 2012, at 2:45 PM, Rost wrote: > Hi everbody !!! > > I would like to know how to use the parameter start of the service resource > type. Because i want to use my own script to start my service. > I have tried 2 cases and did'nt work. > > Here are the cases : > > service { 'myservice': > start => '/root/myinit_script.sh' > } > > service { 'myservice': > start => "/root/myinit_script.sh" > } > > > Do you have any idea on how to use this parameter? > > Thans very much for help.
Rost, Is what you pasted about the entire 'myservice' resource definition or did you leave our the 'ensure' lines for brevity? Make sure you have an 'ensure => running," line in the service definition if you want puppet to ensure that state. There might also be a problem with your init script. Can you please post the contents of myinit_script.sh here? -- Peter Bukowinski -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.