[systemd-devel] [PATCH] condition: add option ConditionArchitecture
Oleksii Shevchuk
alxchk at gmail.com
Fri Mar 29 10:10:24 PDT 2013
> Well, we can discuss extending ExecStartPre=
ExecStartPre= is not about that anyway, because it can be used only in
.service units.
> but I am pretty sure we shouldn't involve the process forking state
> machine in the condition logic.
I don't like it too. But can we have other alternatives? Some way ( or
policy ) for extending without systemd patching should be provided,
maybe. I think about using .target as conditions, like
on-battery.target, network at XXX.target, arch at XXX.target, etc with some
other way to push them on.
Personally I use this approach now (for example, I don't use
ConditionACPower, but battery.target and low-battery.target, which are pushed
by third-party daemon).
More information about the systemd-devel
mailing list