Issue #5197 has been updated by Stefan Schulte.

does these alternatives also truncate the name?

    eselect --no-color rc list
    eselect --no-color rc show --all --unused

The first one should give you a list of all available initscripts. If the 
script is in any runlevel, they will appear on the same line. The second one 
lists every runlevel and for each runlevel it lists every script in it (+ 
started or stopped). If the last one does not truncate one could modify the 
provider:

* use `eselect --no-color rc --all --unused to prefetch` 
(running/stopped/enabled)
* use `eselect --no-color --brief rc add <script>` to enable
* use `eselect --no-color --brief rc del <script>` to disable
* use `eselect --no-color --brief rc start <script>` to ensure running
* use `eselect --no-color --brief rc stop <script>` to ensure stopped
----------------------------------------
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