Issue #18129 has been updated by Niels Abspoel.
solution is to add an if statement to
puppet/lib/puppet/provider/service/systemd.rb
<pre>
if File.exists?("/bin/systemctl")
commands :systemctl => "/bin/systemctl"
else
if File.exists?("/usr/bin/systemctl")
commands :systemctl => "/usr/bin/systemctl"
end
end
</pre>
already made a [pullrequest
1157](https://github.com/puppetlabs/puppet/pull/1157)
----------------------------------------
Bug #18129: systemd provider not working on Arch Linux
https://projects.puppetlabs.com/issues/18129#change-81045
Author: Etienne Perot
Status: Unreviewed
Priority: Normal
Assignee:
Category: service
Target version:
Affected Puppet version: 3.0.1
Keywords: arch linux, systemd, service, provider, sysvinit, systemctl
Branch:
Arch Linux recently made the transition from sysvinit to systemd. As such,
Puppet's default provider for the `service` type should be `systemd` on Arch
Linux.
There's two issues with the current version of Puppet available in Arch's AUR
(3.0.1 as of this writing):
1. If no provider is specified, Puppet currently uses `init` as provider, which
is wrong.
2. If the `systemd` provider is explicitly specified, Puppet will complain that
it is not functional, because it is looking for `/bin/systemctl` whereas it is
at `/usr/bin/systemctl` under Arch.
--
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.