RPM itself does not mean that there is a service. A service is an init
script that is placed in /etc/init.d and the appropriate installation
commands used.

You could create an init script and then execute chkconfig --add
<initscript filename> that will add it. You need a header in the init
script that is parsed by chkconfig, which the link below should give
you some help.

http://www.cyberciti.biz/tips/linux-write-sys-v-init-script-to-start-stop-service.html

The other thing is puppet service resource type does not require that
you have an init script configured like above. One of the caveats is
that if you dont configure it to the rhel 5 way, the system wont start
it up on boot and it will start up when puppet runs. The other caveat
that I encountered is the way puppet determines a service is running
by default is it looks for it in the process table, which means that
your init script might be named one way but the actual process is
named another way. You would need to use the meta "hasstatus" to get
around that.



On Oct 18, 4:21 pm, Dan White <y...@comcast.net> wrote:
> Are there any exapmples out there that show an intelligent way to do this ?
>
> My searches are not turning up anything useful
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere in 
> the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)

-- 
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.

Reply via email to