[Pkg-utopia-maintainers] Bug#1122150: pipewire: init scripts for OpenRC
Frost
debian at brightfur.net
Mon Dec 8 00:38:39 GMT 2025
Package: pipewire
Version: 1.4.9-1
Severity: wishlist
Tags: patch
Pipewire ships with systemd user services, but there isn't anything for other init systems. So if you use a different init system, you get no sound!
OpenRC supports user services now, so I've written some to fix that. I'm not sure how they'd interact with the systemd services on a systemd-using box, though (like systemd trying to load them and blowing up). Does anything special need to be done for that?
And of course these scripts depend on openrc-run. Maybe it'd be better to put them into a new package or something.
I'm including all three scripts here, but the other two are for pipewire-pulse and wireplumber. I figured it'd be better to include them all here in one place rather than filing three separate bug reports, but I can do separate reports on them if that'd be better.
Also, I'm not very experienced with writing init scripts yet, so I don't know if what I've got here is any good. It works on our machines... but that might not mean much!
-- Frost
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.17.8+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled
Versions of packages pipewire depends on:
ii adduser 3.153
ii init-system-helpers 1.69
ii libpipewire-0.3-modules 1.4.9-1
ii pipewire-bin 1.4.9-1
ii systemd-standalone-sysusers [systemd-sysusers] 259~rc2-1
pipewire recommends no packages.
pipewire suggests no packages.
-- no debconf information
-------------- next part --------------
#!/sbin/openrc-run
description='PipeWire user session'
command=pipewire
command_background=true
pidfile="/run/user/$(id -u)/${RC_SVCNAME}.pid"
-------------- next part --------------
#!/sbin/openrc-run
description='PipeWire PulseAudio compatibility layer'
command=pipewire-pulse
command_background=true
pidfile="/run/user/$(id -u)/${RC_SVCNAME}.pid"
depends() {
need pipewire
need wireplumber
}
-------------- next part --------------
#!/sbin/openrc-run
description='PipeWire session manager'
command=wireplumber
command_background=true
pidfile="/run/user/$(id -u)/${RC_SVCNAME}.pid"
depends() {
need pipewire
}
More information about the Pkg-utopia-maintainers
mailing list