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 put in failure state?
Yes. that's my request.
something like ConditionExec=/bin/true and ConditionExec=/bin/false so i
can implement any thinkable logic outside of systemd and still maintain
access to all features like Restart= etc.
I thought this may be an easy way to expand the already existent
conditions (ConditionPathExists= etc.) without implementing too many
special conditional tests in systemd itself. (e.g. check if the current
hostname matches some pattern - which was my original issue i tried to
solve) 8)
bye, marius..
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel