mirror of
https://github.com/nestriness/nestri.git
synced 2026-03-17 11:53:08 +02:00
feat: WIP s6-overlay and friends
This commit is contained in:
1
packages/configs/s6-overlay/wireplumber/notification-fd
Normal file
1
packages/configs/s6-overlay/wireplumber/notification-fd
Normal file
@@ -0,0 +1 @@
|
||||
3
|
||||
20
packages/configs/s6-overlay/wireplumber/run
Normal file
20
packages/configs/s6-overlay/wireplumber/run
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/command/with-contenv bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ -f /etc/nestri/common.sh ]]; then
|
||||
source /etc/nestri/common.sh
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
s6-setuidgid ${NESTRI_USER} wireplumber &
|
||||
PROCESS_PID=$!
|
||||
|
||||
# safety sleep for wireplumber
|
||||
sleep 0.5
|
||||
|
||||
# notify
|
||||
printf 'ready\n' >&3
|
||||
|
||||
# wait till process exits
|
||||
wait "${PROCESS_PID}"
|
||||
1
packages/configs/s6-overlay/wireplumber/type
Normal file
1
packages/configs/s6-overlay/wireplumber/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
Reference in New Issue
Block a user