bundles/voc-tracker-worker: improve bundle

This commit is contained in:
Franzi 2022-04-27 05:40:20 +02:00
parent a38b66a7c5
commit 7fffdbab32
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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': {

View file

@ -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',