How to have an /etc/xdg/autostart/app.desktop service wait for a (systemd) service?
biebl at debian.org
Thu Nov 12 13:35:55 GMT 2015
Am 12.11.2015 um 14:29 schrieb Patrick Schleizer:
> How to have an `/etc/xdg/autostart/app.desktop` service wait for a
> systemd service?
> I have an app started by `/etc/xdg/autostart/app.desktop` that requires
> a systemd service to be started first.
The only proper way to do this "right" would be to have a systemd --user
session and start your app via a user service.
> I would like to avoid some sleep/wait/custom code if there is an
> existing tool for such purposes.
> Is there some kind of `wait_for_service_to_be_running <service-name>`
> (systemd) command line tool?
Not that I know of. Which (system) service specifically are we talking
about here? If it's a D-Bus or socket activated service, you don't need
to add any wait. Just start using the service.
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the Pkg-systemd-maintainers