Skip to content

Commit

Permalink
python3-labgrid: exporter: allow passing args to systemd ExecStart
Browse files Browse the repository at this point in the history
Allow configuring e.g. the exporter hostname from the environment file
by adding ${LABGRID_ARGS} to the ExecStart command line.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
  • Loading branch information
hundeboll committed Feb 7, 2019
1 parent 1c5a62b commit 7565099
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Wants=network-online.target
[Service]
Type=simple
EnvironmentFile=/etc/labgrid/environment
ExecStart=/usr/bin/python3 /usr/bin/labgrid-exporter -d -x ws://${LABGRID_COORDINATOR_IP}:${LABGRID_COORDINATOR_PORT}/ws /etc/labgrid/configuration.yaml
ExecStart=/usr/bin/python3 /usr/bin/labgrid-exporter -d -x ws://${LABGRID_COORDINATOR_IP}:${LABGRID_COORDINATOR_PORT}/ws /etc/labgrid/configuration.yaml ${LABGRID_ARGS}

[Install]
WantedBy=multi-user.target

0 comments on commit 7565099

Please sign in to comment.