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:
Paul Belanger 2017-08-18 16:25:18 -04:00
parent 9282ec588f
commit 091633b380
1 changed files with 2 additions and 1 deletions

View File

@ -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