bundles/voc-tracker-worker: use EnvironmentFile

This commit is contained in:
Franzi 2023-10-22 08:58:48 +02:00
parent ea42188904
commit 0e03038bdb
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@ After=network.target
[Service]
User=voc
Group=voc
EnvironmentFile=/etc/default/crs-worker
ExecStart=/opt/crs-scripts/bin/crs_run ${script}
WorkingDirectory=/opt/crs-scripts
Restart=on-failure

View file

@ -1,6 +1,6 @@
export CRS_TRACKER="${url}"
export CRS_TOKEN="${token}"
export CRS_SECRET="${secret}"
CRS_TRACKER=${url}
CRS_TOKEN=${token}
CRS_SECRET=${secret}
% if use_vaapi:
export CRS_USE_VAAPI="yes"
CRS_USE_VAAPI=yes
% endif