For example on debian, I still have init.d folder when using systemd.

On arch, no init.d is present… 

and as on debian we can switch between systemd / sysvinit I'll keep the too if the folders exists (damn why they switched to systemd…)

Le 26 févr. 2013 à 20:24, Damian Nowak <notifications@github.com> a écrit :

> In ArchipelAgent/archipel-agent/install/bin/archipel-initinstall:
> 
> > +    if os.path.exists("%s/etc/init.d/" % prefix):
> > +        msg("Installing init script to %s/etc/init.d/archipel" % prefix)
> > +
> > +        if os.path.exists("%s/etc/init.d/archipel" % prefix):
> > +            warn("Init script already exists. Leaving as it is.")
> > +            return
> > +        if os.system("cp '%s' '%s/etc/init.d/archipel'" % (init_script, prefix)) == 0:
> > +            success("Init script installed")
> > +        else:
> > +            error("Unable to copy the init script. Please install it by yourself", exit=False)
> > +        if os.system("chmod 755 '%s/etc/init.d/archipel'" % prefix) == 0:
> > +            success("Init script chmoded")
> > +        else:
> > +            error("Unable to chmod the init script", exit=False)
> > +
> > +    if os.path.exists("%s/etc/systemd/" % prefix) and os.path.exists("%s/usr/lib/systemd/system" % prefix):
> Indeed, it's crucial that systemd be checked first. Bleeding edge distributions already dropped sysvinit compatibility but those more conservative still use both.
> 
> —
> Reply to this email directly or view it on GitHub.
>