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.
> 
> This is exactly way how I want to implement this.
> Issue is that in systemd-29 it seems to impossible to successfully call 
> systemctl from unit files. 
> Processing of such unit simply hangs.
> I get impression systemctl can't be called recurrently.

It can. We do that by default in rsyslog.service for example. But you
need to make sure not to add deadlocks with that, or only trigger but
not synchonously wait for your operations. Use systemctl
--no-block for that.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to