Issue #5197 has been updated by Stefan Schulte.

I think an even better alternative whould be to use `rc-status` instead.

* check running: `/sbin/rc-service <servicename> status`
* start service: `/sbin/rc-service <servicename> start`
* stop service : `/sbin/rc-service <servicename> stop`
* check enabled: `/bin/rc-status -C default boot` and grep for `<servicename>`
* enable: `/sbin/rc-update add <servicename>`
* disable: `/sbin/rc-update del <servicename>`

Does `rc-status` work with long service names?
----------------------------------------
Bug #5197: Gentoo service provider doesn't catch long service names due to 
"rc-update show" truncating names
https://projects.puppetlabs.com/issues/5197

Author: Doug Warner
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 0.25.5
Keywords: service
provider
gentoo
Branch: 


I'm trying to manage a service called "openvpn.something_rather_longish" (sorry 
for the example name).  Unfortunately, when you run `/sbin/rc-update show` you 
get the following:
    openvpn.something_r |      default

Puppet doesn't find the service "openvpn.something_rather_longish" so it tries 
to enable it.  Every time it runs.

rc-update doesn't seem like there's a way around this, so I would recommend 
just looking in `/etc/runlevels/{boot,default}/` instead and then use rc-update 
to enable/disable the service.

I'll try to work on a patch tomorrow as this is affecting us in several 
different situations.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to