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

2015-04-01 Thread Lennart Poettering
On Mon, 30.03.15 09:48, Igor Bukanov (i...@mir2.org) wrote: 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?

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

2015-03-30 Thread Igor Bukanov
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? ___ systemd-devel mailing

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

2015-03-30 Thread Andrei Borzenkov
В Mon, 30 Mar 2015 09:48:25 +0200 Igor Bukanov i...@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

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

2015-03-30 Thread Igor Bukanov
It would be really nice to have an utility that waits until a unit is transitioned from the activating state. My problem is that I wanted to replace in a shell script a sequence like: sudo -u some_user ssh -f port_forwarding host use_forwarded_ports kill hopefully rightly guessed ssh PID with