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]
|
||||
User=voc
|
||||
Group=voc
|
||||
EnvironmentFile=/etc/default/crs-worker
|
||||
ExecStart=/opt/crs-scripts/bin/crs_run ${script}
|
||||
WorkingDirectory=/opt/crs-scripts
|
||||
Restart=on-failure
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue