[systemd-devel] systemd-run and waiting for initialization

Andrei Borzenkov arvidjaar at gmail.com
Mon Mar 30 20:51:56 PDT 2015


В Mon, 30 Mar 2015 09:48:25 +0200
Igor Bukanov <igor at mir2.org> пишет:

> As I understand, the systemd-run utility returns immediately even with
> --service-type=forking. What is the proper way then to wait using a shell
> until the main service process forks the child and exists signaling
> initialization?

It is not limited to forking. systemd-run simply queues request to
start unit, same as systemctl does. It would need to actually wait
until systemd reports that unit is started.


More information about the systemd-devel mailing list