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
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
SyslogIdentifier=crs-${worker}
|
||||
|
||||
[Install]
|
||||
WantedBy=crs-worker.target
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
export CRS_TRACKER="${url}"
|
||||
export CRS_TOKEN="${token}"
|
||||
export CRS_SECRET="${secret}"
|
||||
% if use_vaapi:
|
||||
export CRS_USE_VAAPI="yes"
|
||||
% endif
|
||||
|
|
|
@ -12,7 +12,10 @@ directories = {
|
|||
}
|
||||
|
||||
for path in paths:
|
||||
directories[f'/video/{path}'] = {}
|
||||
directories[f'/video/{path}'] = {
|
||||
'owner': 'voc',
|
||||
'group': 'voc',
|
||||
}
|
||||
|
||||
git_deploy = {
|
||||
'/opt/crs-scripts': {
|
||||
|
@ -41,6 +44,7 @@ for worker, script in {
|
|||
'content_type': 'mako',
|
||||
'source': 'crs-runner.service',
|
||||
'context': {
|
||||
'worker': worker,
|
||||
'script': script,
|
||||
},
|
||||
'needs': {
|
||||
|
|
|
@ -17,6 +17,9 @@ defaults = {
|
|||
'libxml-simple-perl': {},
|
||||
},
|
||||
},
|
||||
'voc-tracker-worker': {
|
||||
'use_vaapi': False,
|
||||
},
|
||||
'users': {
|
||||
'voc': {
|
||||
'home': '/opt/voc',
|
||||
|
|
Loading…
Reference in a new issue