Skip to content

Commit

Permalink
contrib/systemd: update coordinator service
Browse files Browse the repository at this point in the history
Update the coordinator service to support the new grpc coordinator.

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor authored and jluebbe committed Jun 21, 2024
1 parent 4d55ae6 commit 3ab3f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/systemd/labgrid-coordinator.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ After=network.target

[Service]
Environment="PYTHONUNBUFFERED=1"
# labgrid's .crossbar/config-anonymous.yaml serves as an example
ExecStart=/path/to/labgrid-coordinator/venv/bin/crossbar start --logformat=syslogd --cbdir /var/lib/labgrid-coordinator --config /etc/labgrid/coordinator.yaml
ExecStop=/usr/bin/labgrid-coordinator stop --cbdir /var/lib/labgrid-coordinator
ExecStart=/path/to/labgrid-coordinator/venv/bin/labgrid-coordinator
Restart=on-failure
DynamicUser=yes
StateDirectory=labgrid-coordinator
# Set WorkingDirectory to StateDirectory, this works in DynamicUser mode since symlinks are created
WorkingDirectory=%S/labgrid-coordinator

[Install]
WantedBy=multi-user.target

0 comments on commit 3ab3f1d

Please sign in to comment.