Re: [systemd-devel] How to manually set service in "failed" state

2014-03-24 Thread Lennart Poettering
On Tue, 18.03.14 14:59, Usman (deser...@yahoo.com) wrote: > Hi Guys, > > I am trying to test some code with respect to my services setup. I have two > services, lets say service_a and service_b. In service_a unit file I have > this: > > OnFailure=service_b > > > And from the man page for OnF

Re: [systemd-devel] How to manually set service in "failed" state

2014-03-18 Thread Usman
Thanks. But this requires that service_a should be a dummy service. I want both the services in actual deployment scenario and then fail service_a to simulate real crash. Any way I can do that? ___ systemd-devel mailing list systemd-devel@lists.freedes

Re: [systemd-devel] How to manually set service in "failed" state

2014-03-18 Thread Michael Biebl
/etc/systemd/system# cat fail.service [Unit] Description=Fail service [Service] ExecStart=/bin/false 2014-03-18 22:59 GMT+01:00 Usman : > Hi Guys, > > I am trying to test some code with respect to my services setup. I have two > services, lets say service_a and service_b. In service_a unit file I

Re: [systemd-devel] How to manually set service in "failed" state

2014-03-18 Thread Reindl Harald
Am 18.03.2014 22:59, schrieb Usman: > I am trying to test some code with respect to my services setup. I have two > services, lets say service_a and > service_b. In service_a unit file I have this: > > OnFailure=service_b > > And from the man page for OnFailure unit I get this: > > A space-se

[systemd-devel] How to manually set service in "failed" state

2014-03-18 Thread Usman
Hi Guys, I am trying to test some code with respect to my services setup. I have two services, lets say service_a and service_b. In service_a unit file I have this: OnFailure=service_b And from the man page for OnFailure unit I get this: A space-separated list of one or more units that are ac