Hi, Depending on your version latest docs are described here: http://docs.puppetlabs.com/references/latest/type.html#service
You should specify whether you want the service enabled or not and try to provide a status script so puppet can figure out if the service is already running or not. Also make sure you provide good exit codes on your scripts. Cheers, Den On 07/08/2012, at 4:45, Rost <yngui...@gmail.com> 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. > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/W1dRjH4ugwoJ. > 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. -- 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.