On 04/02/12 10:04, Warpme wrote:
On 2/1/12 8:37 PM, Chris Paulson-Ellis wrote:
On 01/02/12 19:07, Lennart Poettering wrote:
On Wed, 01.02.12 18:54, Chris Paulson-Ellis (ch...@edesix.com) wrote:

Is there some way to get the client to always restart when server
restarts, for whatever reason?

No, there isn't. But what you describe is something I consider a bug,
and to fix this has been on the TODO list for a while. i.e. a server
dying and being restarted should still cause all services depending on
it to restart.

Hence: expect this to be fixed for you soon, so that BindTo works as
expected.

On Wed, 01.02.12 19:13, Chris Paulson-Ellis (ch...@edesix.com) wrote:
https://bugs.freedesktop.org/show_bug.cgi?id=45511

This bug for me practically excludes systemd as advanced solution for servers.

I'm working around this by using Requires instead of BindTo and including the following hack in the server file:

ExecStartPre=/usr/bin/sudo /bin/systemctl --no-block try-restart client.service

Obviously this is less than ideal (and you need more configuration to make the sudo work), but it does the job for now.

Chris.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to