bundles/voc-tracker-worker: use EnvironmentFile
This commit is contained in:
parent
ea42188904
commit
0e03038bdb
2 changed files with 5 additions and 4 deletions
|
@ -5,6 +5,7 @@ After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
User=voc
|
User=voc
|
||||||
Group=voc
|
Group=voc
|
||||||
|
EnvironmentFile=/etc/default/crs-worker
|
||||||
ExecStart=/opt/crs-scripts/bin/crs_run ${script}
|
ExecStart=/opt/crs-scripts/bin/crs_run ${script}
|
||||||
WorkingDirectory=/opt/crs-scripts
|
WorkingDirectory=/opt/crs-scripts
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export CRS_TRACKER="${url}"
|
CRS_TRACKER=${url}
|
||||||
export CRS_TOKEN="${token}"
|
CRS_TOKEN=${token}
|
||||||
export CRS_SECRET="${secret}"
|
CRS_SECRET=${secret}
|
||||||
% if use_vaapi:
|
% if use_vaapi:
|
||||||
export CRS_USE_VAAPI="yes"
|
CRS_USE_VAAPI=yes
|
||||||
% endif
|
% endif
|
||||||
|
|
Loading…
Reference in a new issue