bundles/voc-tracker-worker: improve bundle
This commit is contained in:
parent
a38b66a7c5
commit
7fffdbab32
4 changed files with 12 additions and 1 deletions
|
@ -9,6 +9,7 @@ ExecStart=/opt/crs-scripts/bin/crs_run ${script}
|
||||||
WorkingDirectory=/opt/crs-scripts
|
WorkingDirectory=/opt/crs-scripts
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
SyslogIdentifier=crs-${worker}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=crs-worker.target
|
WantedBy=crs-worker.target
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
export CRS_TRACKER="${url}"
|
export CRS_TRACKER="${url}"
|
||||||
export CRS_TOKEN="${token}"
|
export CRS_TOKEN="${token}"
|
||||||
export CRS_SECRET="${secret}"
|
export CRS_SECRET="${secret}"
|
||||||
|
% if use_vaapi:
|
||||||
|
export CRS_USE_VAAPI="yes"
|
||||||
|
% endif
|
||||||
|
|
|
@ -12,7 +12,10 @@ directories = {
|
||||||
}
|
}
|
||||||
|
|
||||||
for path in paths:
|
for path in paths:
|
||||||
directories[f'/video/{path}'] = {}
|
directories[f'/video/{path}'] = {
|
||||||
|
'owner': 'voc',
|
||||||
|
'group': 'voc',
|
||||||
|
}
|
||||||
|
|
||||||
git_deploy = {
|
git_deploy = {
|
||||||
'/opt/crs-scripts': {
|
'/opt/crs-scripts': {
|
||||||
|
@ -41,6 +44,7 @@ for worker, script in {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'source': 'crs-runner.service',
|
'source': 'crs-runner.service',
|
||||||
'context': {
|
'context': {
|
||||||
|
'worker': worker,
|
||||||
'script': script,
|
'script': script,
|
||||||
},
|
},
|
||||||
'needs': {
|
'needs': {
|
||||||
|
|
|
@ -17,6 +17,9 @@ defaults = {
|
||||||
'libxml-simple-perl': {},
|
'libxml-simple-perl': {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'voc-tracker-worker': {
|
||||||
|
'use_vaapi': False,
|
||||||
|
},
|
||||||
'users': {
|
'users': {
|
||||||
'voc': {
|
'voc': {
|
||||||
'home': '/opt/voc',
|
'home': '/opt/voc',
|
||||||
|
|
Loading…
Reference in a new issue