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

2011-08-01 Thread Warpme
On 8/2/11 1:02 AM, Lennart Poettering wrote: On Thu, 28.07.11 15:20, warpme ([email protected]) 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 u

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

2011-08-01 Thread Lennart Poettering
On Thu, 28.07.11 15:20, warpme ([email protected]) 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 st

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

2011-08-01 Thread Lennart Poettering
On Wed, 27.07.11 22:05, Warpme ([email protected]) 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

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

2011-08-01 Thread Lennart Poettering
On Thu, 28.07.11 10:38, Zbigniew JÄ™drzejewski-Szmek ([email protected]) wrote: > Hi, > to give a more concrete example: proc2=tracd using proc1=postgresql as a > backend requires a restart after the database daemon is restarted, > because it doesn't reopen the connection. A really ugly and painful

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

2011-07-28 Thread warpme
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. This is exactly way how I want to implement this. Issue is t

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 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 res

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

2011-07-27 Thread Warpme
On 7/27/11 11:19 PM, Kok, Auke-jan H wrote: 2011/7/27 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 han

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

2011-07-27 Thread Kok, Auke-jan H
2011/7/27 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 >

[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) Whil