[systemd-devel] Starting one service when another one starts

Lennart Poettering lennart at poettering.net
Mon Apr 11 12:19:48 UTC 2022


On Mo, 11.04.22 12:41, Nick Howitt (nick at howitts.co.uk) wrote:

> > You can add WantedBy=siad.service to [Install] section of
> > clearshare-scheduler.service. In general you can always extend Wants by
> > manually creating necessary links. This does not require you to edit
> > unit definition itself. You can also create drop-in (although I am not
> > sure whether they are already supported in your systemd version).
>
> I've tried this and can implement what you've described, but as you say, it
> does not help me when starting the WantedBy service (siad).

You must issue "systemctl enable" to actually make the stuff from
[Install] apply.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list