Waiting on a bus name to appear in systemd service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <nierro92 at gmail.com> 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
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180629/1a3cea38/attachment.html>


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux