Re: [systemd-devel] Hand when using systemctl in unit files

2011-08-02 Thread Warpme
On 8/2/11 1:02 AM, Lennart Poettering wrote: On Thu, 28.07.11 15:20, warpme (war...@o2.pl) wrote: Zbyszek, Thx for replay. You touch exactly the point. You can use more than one ExecStartPost. E.g. ExecStartPost=sleep 10 ExecStartPost=systemctl try-restart proc2 This way you remove the

Re: [systemd-devel] Hand when using systemctl in unit files

2011-08-01 Thread Lennart Poettering
On Wed, 27.07.11 22:05, Warpme (war...@o2.pl) wrote: Hi, I really like systemd concept. I want to use systemctl to control other unit from given unit. I'm on systemd-29 Example: unit1: ExecStartPre=systemctl restart service2.service This won't work since we only allow absolute file

Re: [systemd-devel] Hand when using systemctl in unit files

2011-08-01 Thread Lennart Poettering
On Thu, 28.07.11 15:20, warpme (war...@o2.pl) wrote: Zbyszek, Thx for replay. You touch exactly the point. You can use more than one ExecStartPost. E.g. ExecStartPost=sleep 10 ExecStartPost=systemctl try-restart proc2 This way you remove the unnecessary delay when starting proc2.

Re: [systemd-devel] Hand when using systemctl in unit files

2011-07-28 Thread Zbigniew Jędrzejewski-Szmek
On 07/28/2011 08:37 AM, Warpme wrote: On 7/27/11 11:19 PM, Kok, Auke-jan H wrote: 2011/7/27 Warpmewar...@o2.pl: Hi, I really like systemd concept. I want to use systemctl to control other unit from given unit. I'm on systemd-29 Example: unit1: ExecStartPre=systemctl restart

[systemd-devel] Hand when using systemctl in unit files

2011-07-27 Thread Warpme
Hi, I really like systemd concept. I want to use systemctl to control other unit from given unit. I'm on systemd-29 Example: unit1: ExecStartPre=systemctl restart service2.service Issuing systemctl restart unit1.service gives hang on this command (I have to terminate manually systemctl) While