Re: [systemd-devel] Is it possible to start other service units by a service unit which was killed?

2013-12-16 Thread Andrey Borzenkov
В Tue, 17 Dec 2013 04:13:33 +0900
Tony Seo  пишет:
> 
> But I'm curious about "fail" from your answer, now.
> What is the "fail signal" in systemd?

When process terminated unexpectedly with any exit status that does
not mean "normal exit". See SuccessExitStatus in man systemd.service.

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


Re: [systemd-devel] Is it possible to start other service units by a service unit which was killed?

2013-12-16 Thread Tony Seo
Because I have managed  a few processes in systemd, I'd like to just start
all processes at the same time when one of the process was failed or dead
with kill signal.

But I'm curious about "fail" from your answer, now.
What is the "fail signal" in systemd?
I don't know how to make systemd take "fail" by some signal or method in
source code.

Thanks
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Is it possible to start other service units by a service unit which was killed

2013-12-15 Thread Tomasz Torcz
On Mon, Dec 16, 2013 at 02:26:02AM +0900, Tony Seo wrote:
> Hello.
> 
> I send this mail to know whether systemd have options to solve this problem
> without socket activation.
> 
> what I have experienced situation is like:
> If I have A.service, B.service and C.service, I'd like to set [service]  in
> A.service to make others started when A.service is exited(fail, exit .. are
> not important)

  Tha would be OnFailure= (described in man systemd.unit).

-- 
Tomasz Torcz   RIP is irrevelant. Spoofing is futile.
xmpp: zdzich...@chrome.pl Your routes will be aggreggated. -- Alex Yuriev

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


Re: [systemd-devel] Is it possible to start other service units by a service unit which was killed

2013-12-15 Thread Andrey Borzenkov
В Mon, 16 Dec 2013 02:26:02 +0900
Tony Seo  пишет:

> Hello.
> 
> I send this mail to know whether systemd have options to solve this problem
> without socket activation.
> 
> what I have experienced situation is like:
> If I have A.service, B.service and C.service, I'd like to set [service]  in
> A.service to make others started when A.service is exited(fail, exit .. are
> not important)

For fail - see OnFailure (man systemd.unit). For clean exit I guess the
only way is to call systemctl directly. 

Why would you want to do it in case of normal exit? May be there are
other ways to achieve your goal?

> A.service--
> [service]
> ExecStart=/bin/program
> Restart=always
> -->?(I don't know that some options to start B.service and C.service)
> 
> 
> So, I have checked some options in [service] manual, but I have not
> detected some options to start other units when A.service was killed.
> I really want to know that systemd have methods or options to solve my
> problem without socket activation.
> 
> Thanks

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