[Pkg-puppet-devel] Bug#775795: Patch to use /usr/sbin/service in Debian service-provider
Apollon Oikonomopoulos
apoikos at debian.org
Sat Feb 28 13:17:31 UTC 2015
On Fri, 27 Feb 2015 11:20:30 +0200 Apollon Oikonomopoulos <apoikos at debian.org> wrote:
> The attached patch on top of 3.7.2-2 (hopefully) addresses all of
> these issues (and drops support for pre-2.88 sysv-rc if you don't
> mind). I have not tested it on a sysvinit Jessie system though, so if
> anyone could do this it would be appreciated!
I also tested it on a sysv-rc Jessie system. This is an updated version
of the patch, marking the systemctl command as optional. Without this,
sysv-rc Jessie systems would have the Debian provider blacklisted
because of the missing systemctl command.
Interdiff:
--- b/lib/puppet/provider/service/debian.rb
+++ b/lib/puppet/provider/service/debian.rb
@@ -15,7 +15,7 @@
# http://projects.reductivelabs.com/issues/2538
# is resolved.
commands :invoke_rc => "/usr/sbin/invoke-rc.d"
- commands :systemctl => "/bin/systemctl"
+ optional_commands :systemctl => "/bin/systemctl"
# This isn't being used directly, it's just here to ensure
# that the /usr/sbin/service binary is available.
Cheers,
Apollon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-service-listing-and-enable-disable-in-Debian.patch
Type: text/x-diff
Size: 6238 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20150228/7e500739/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20150228/7e500739/attachment.sig>
More information about the Pkg-puppet-devel
mailing list