systemd can depend on services, not bus names. In your example, you'd want:
Wants=polkit
However, in most cases, you don't actually want to do this; if the service
(in this case, polkit) tells systemd what bus name it is going to ask for,
systemd will automatically wait when your service asks for it.
For instance, the moment your service tries to connect to
org.freedesktop.PolicyKit1, systemd will wait for polkit to start before
letting your service continue.
On June 29, 2018 4:44:27 PM Federico Di Pierro <[email protected]> wrote:
Hi everyone!
I was wondering whether there was a way for a systemd service to wait for a
bus name to appear before starting a service.
Something like:
Requires=org.freedesktop.PolicyKit1
I could not find much googling around.
Is this possible?
Thanks everyone!
Federico
----------
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel