Create ARGS environmental varaible to allow for systemd override files
This actually works a little better when writing override config files as we don't have to worry about %%GLEANSH_PATH%% for different operating systems. Change-Id: I87774df62bab6418ea8fbdec4da137e01f72537c Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
9282ec588f
commit
091633b380
|
@ -8,7 +8,8 @@ ConditionPathExists=!/etc/sysconfig/network-scripts/ifcfg-%I
|
|||
[Service]
|
||||
Type=oneshot
|
||||
User=root
|
||||
ExecStartPre=%%GLEANSH_PATH%%/glean.sh --interface %I
|
||||
Environment="ARGS=--interface %I"
|
||||
ExecStartPre=%%GLEANSH_PATH%%/glean.sh ${ARGS}
|
||||
ExecStart=/sbin/ifup %I
|
||||
RemainAfterExit=true
|
||||
|
||||
|
|
Loading…
Reference in New Issue