[systemd-devel] start service only on specific exit status of some prog

2011-08-02 Thread Marius Tolzmann
hi.. since conditions specifying wheter a service should start are somehow limited to the existence of some files/directories/etc. i was searching for something more complex to handle conditional service starts. is there a way to execute a program and take its exit status to evaluate the co

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Lennart Poettering
On Tue, 02.08.11 17:06, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > hi.. > > since conditions specifying wheter a service should start are > somehow limited to the existence of some files/directories/etc. i > was searching for something more complex to handle conditional > service starts

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Marius Tolzmann
On 24.08.2011 16:01, Lennart Poettering wrote: On Tue, 02.08.11 17:06, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: is there a way to execute a program and take its exit status to evaluate the condition? like ConditionExec or whatever. is this already possible without getting a "failed" ser

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Lennart Poettering
On Wed, 24.08.11 18:25, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > On 24.08.2011 16:01, Lennart Poettering wrote: > >On Tue, 02.08.11 17:06, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > >> > >>is there a way to execute a program and take its exit status to > >>evaluate the condition

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Marius Tolzmann
On 24.08.2011 18:52, Lennart Poettering wrote: Hmm, yeah, if ExecStartPre= we put the unit in failure mode. So, let me see if I got this right: you are looking for something like ExecStartPre= but twhere the program when it returns non-zero should just cause the service to be skipped but not be

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Lennart Poettering
On Wed, 24.08.11 21:12, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > On 24.08.2011 18:52, Lennart Poettering wrote: > >Hmm, yeah, if ExecStartPre= we put the unit in failure mode. > > > >So, let me see if I got this right: you are looking for something like > >ExecStartPre= but twhere the

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Marius Tolzmann
On 24.08.2011 21:21, Lennart Poettering wrote: On Wed, 24.08.11 21:12, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: On 24.08.2011 18:52, Lennart Poettering wrote: Hmm, yeah, if ExecStartPre= we put the unit in failure mode. So, let me see if I got this right: you are looking for something

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Lennart Poettering
On Wed, 24.08.11 23:54, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > On 24.08.2011 21:21, Lennart Poettering wrote: > >On Wed, 24.08.11 21:12, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > > >> > >>On 24.08.2011 18:52, Lennart Poettering wrote: > >>>Hmm, yeah, if ExecStartPre= we put

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Nick Jones
On Wed, 2011-08-24 at 21:21 +0200, Lennart Poettering wrote: > On Wed, 24.08.11 21:12, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > > > > On 24.08.2011 18:52, Lennart Poettering wrote: > > >Hmm, yeah, if ExecStartPre= we put the unit in failure mode. > > > > > >So, let me see if I got thi

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-25 Thread Marius Tolzmann
On 08/25/11 07:09, Nick Jones wrote: > On Wed, 2011-08-24 at 21:21 +0200, Lennart Poettering wrote: > >> I have now added this to the TODO list. It won't be easy to add this >> though, as execution extrernal processes synchronously is not an >> option. More likely I'll add an additional prefix ch

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-25 Thread Barry Scott
On Wednesday 24 August 2011 17:25:40 Marius Tolzmann wrote: > On 24.08.2011 16:01, Lennart Poettering wrote: > > On Tue, 02.08.11 17:06, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > >> > >> is there a way to execute a program and take its exit status to > >> evaluate the condition? like Condit

Re: [systemd-devel] start service only on specific exit status of some prog

2011-11-01 Thread Lennart Poettering
On Thu, 25.08.11 13:09, Nick Jones (nick.jo...@network-box.com) wrote: > > On Wed, 2011-08-24 at 21:21 +0200, Lennart Poettering wrote: > > On Wed, 24.08.11 21:12, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > > > > > > > On 24.08.2011 18:52, Lennart Poettering wrote: > > > >Hmm, yeah, i