If I understand you correct, if neither /bin/systemctl or
/usr/bin/systemctl is present than puppet should treat the system as a
system without systemd. that is true.


2013/2/9 Stefan Schulte <notifications@github.com>

> In lib/puppet/provider/service/systemd.rb:
>
> > @@ -1,11 +1,18 @@
> >  # Manage systemd services using /bin/systemctl
> >
> >  Puppet::Type.type(:service).provide :systemd, :parent => :base do
> > -  desc "Manages `systemd` services using `/bin/systemctl`."
> > -
> > -  commands :systemctl => "/bin/systemctl"
> > +  desc "Manages `systemd` services using `/bin/systemctl` or `/usr/bin/systemctl`."
> > +
> > +  if File.exists?("/bin/systemctl")
> > +    commands :systemctl => "/bin/systemctl"
> > +  else
> > +    if File.exists?("/usr/bin/systemctl")
>
> By reading your code I suppose if neither /bin/systemctl nor
> /usr/bin/systemctl are present on your system, the provider will have no
> confine and will be treated as suitable on systems that do not have
> systemd available at all.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/puppetlabs/puppet/pull/1157/files#r2953024>..
>
>