vp-build/srcpkgs/66-boot/files/pulseaudio/pulseaudio

22 lines
390 B
Plaintext

[main]
@type = longrun
@description = "Start a pulseaudio session"
@user = ( user )
@options = ( log )
[start]
@build = auto
@execute=(
foreground
{
if -nt { s6-test -d ${XDG_RUNTIME_DIR}/pulse }
s6-mkdir -p -m 0755 ${XDG_RUNTIME_DIR}/pulse
}
s6-ipcserver-socketbinder -- ${XDG_RUNTIME_DIR}/pulse/native
pulseaudio --daemonize=no
)
[stop]
@build = auto
@execute = ( pulseaudio --kill )