coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 302 forks source link

Add inverted / negative condition for X-Fleet options #1368

Open kayrus opened 9 years ago

kayrus commented 9 years ago

Like it is done in systemd

With ConditionPathExists= a file existence condition is checked before a unit is started. If the specified absolute path name does not exist, the condition will fail. If the absolute path name passed to ConditionPathExists= is prefixed with an exclamation mark ("!"), the test is negated, and the unit is only started if the path does not exist.

Or probably implement additional options (like Conflicts!=MachineOf):

pmoust commented 8 years ago

Very interested in this.

brandonkruse commented 8 years ago

This would be great functionality