wireplumber: add runit service

ahesford: add log sub-service, redirect stderr in run script
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>

Closes: #36416 [via git-merge-pr]
This commit is contained in:
Animesh Sahu 2022-03-29 23:59:51 +05:30 committed by Andrew J. Hesford
parent 70a2e81b46
commit 9f50345e00
4 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
[ -r supervise/pid ] && kill -TERM -$(cat supervise/pid)

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec logger -t wireplumber -p daemon.info

View File

@ -0,0 +1,10 @@
#!/bin/sh
# this service is experimental and most setups should start pipewire and wireplumber as a user,
# for further information, please refer to the handbook
sv check dbus >/dev/null 2>&1 || exit 1
exec 2>&1
export HOME=/var/run/pipewire
exec chpst -u _pipewire:_pipewire:audio:video -P dbus-run-session wireplumber

View File

@ -1,7 +1,7 @@
# Template file for 'wireplumber'
pkgname=wireplumber
version=0.4.8
revision=1
revision=2
build_style=meson
build_helper=gir
configure_args="-Dintrospection=enabled -Dsystem-lua=true"
@ -18,6 +18,7 @@ checksum=a7a84c21230c339a905704a9495dda10a4dec41a96bc115a9b33d24310a3f605
post_install() {
vlicense LICENSE
vsv wireplumber
}
wireplumber-devel_package() {