[systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

Michael Biebl mbiebl at gmail.com
Thu Jun 9 09:13:34 UTC 2016


2016-06-09 10:55 GMT+02:00 Bao Nguyen <baondt at gmail.com>:
> Hi everyone,
>
> I have a script written by SysVinit, can I declare ordering of this script
> with a systemd unit in "X-Start-Before:" and "X-Start-After:", for ex
>
> X-Start-Before: systemd_1.service
> X-Start-After: systemd_2.service
>
> Can it be declared like that? Can it work as expected if LSB depends on
> systemd service?


Yes, this works. But you need to drop the .service file extension.


More information about the systemd-devel mailing list