Yes, you should have the ensure parameter in there:
service { 'myservice':
ensure => running,
start => '/root/myinit_script.sh',
}
Since you're using a custom start script, you may need to also specify custom status and restart scripts so that puppet can better control the process if the httpd config file ever changes and you want the service to restart automatically.
--
Peter
> --
> 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/-/o_m0fn9FLnAJ.
> To post to this group, send email to
puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
puppet-users...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
Peter