How to have an /etc/xdg/autostart/app.desktop service wait for a (systemd) service?

Michael Biebl biebl at debian.org
Thu Nov 12 13:35:55 GMT 2015


Hi Patrick

Am 12.11.2015 um 14:29 schrieb Patrick Schleizer:
> Hi!
> 
> TLDR:
> 
> How to have an `/etc/xdg/autostart/app.desktop` service wait for a
> systemd service?
> 
> Long:
> 
> 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.

Michael

-- 
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...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20151112/f51fab64/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list