[OE-core] [PATCH] systemd: Remove init.d dir if systemd unit file is present and sysvinit not a distro feature

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Tue Jul 23 10:46:49 UTC 2013


"Shakeel, Muhammad"
<muhammad_shakeel-nmGgyN9QBj3QT0dZR+AlfA at public.gmane.org> writes:

> If systemd is supported DISTRO_FEATURE and sysvinit is not and also if
> systemd_unitdir contains a service file(s) then no need to keep init.d scripts
> for sysvinit compatibility.
> ...
> +            for filename in os.listdir(systemd_unitdir):
> +                if filename.endswith(".service"):

why only .service?  Other systemd files (.socket, .mount, .path, ...)
can also replace initscripts.


Enrico



More information about the Openembedded-core mailing list