Rename things to be slightly clearer by removing references to glean.sh from various variable names and subsitutions. Change-Id: Ib05220cd2de5a59b608c3e94e26ea44a89a77c49
23 lines
549 B
Desktop File
23 lines
549 B
Desktop File
[Unit]
|
|
Description=Glean for interface %I with NetworkManager
|
|
Before=network-pre.target
|
|
Wants=network-pre.target glean-early.service
|
|
After=local-fs.target glean-early.service
|
|
|
|
# Red Hat
|
|
ConditionPathExists=!/etc/sysconfig/network-scripts/ifcfg-%I
|
|
# SuSE
|
|
ConditionPathExists=!/etc/sysconfig/network/ifcfg-%I
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=root
|
|
Environment="ARGS=--interface %I"
|
|
ExecStart=%%GLEAN_SCRIPTS_DIR%%/python-glean --use-nm --debug %%EXTRA_ARGS%% $ARGS
|
|
RemainAfterExit=true
|
|
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|