Skip to content

Commit

Permalink
bw/bundles: restart voctocore/voctogui when deploying new voctomix ve…
Browse files Browse the repository at this point in the history
…rsion
  • Loading branch information
kunsi committed Nov 23, 2024
1 parent 9b2ace2 commit 0b8f5d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundlewrap/bundles/voctocore/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
'streaming_use_dynaudnorm': False,
'vaapi': False,
},
'voctomix2': {
'deploy_triggers': {
'svc_systemd:voctomix2-voctocore:restart',
},
},
}

if not node.has_bundle('zfs'):
Expand Down
1 change: 1 addition & 0 deletions bundlewrap/bundles/voctogui/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
'triggers': {
'action:systemd-reload',
'svc_systemd:voctomix2-voctogui:restart',
},
}

Expand Down
5 changes: 5 additions & 0 deletions bundlewrap/bundles/voctogui/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@
'play_audio': False,
'video_display': 'xv',
},
'voctomix2': {
'deploy_triggers': {
'svc_systemd:voctomix2-voctogui:restart',
},
},
}
1 change: 1 addition & 0 deletions bundlewrap/bundles/voctomix2/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
git_deploy['/opt/voctomix2/release'] = {
'repo': 'https://github.com/voc/voctomix.git',
'rev': node.metadata.get('voctomix2/rev'),
'triggers': node.metadata.get('voctomix2/deploy_triggers', set()),
}

directories['/opt/voctomix2/scripts'] = {
Expand Down

0 comments on commit 0b8f5d2

Please sign in to comment.