try systemd

This commit is contained in:
Alexandre
2024-04-26 10:57:34 +02:00
parent 9fbd9b3f67
commit 8cd23d0d11
16 changed files with 38 additions and 19 deletions

View File

@@ -1,4 +1,14 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: dbus"
exec \
dbus-daemon --system --nofork
# Waiting for dbus
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
echo "Starting service: pulseaudio"
while :
do
if [[ ! $(/usr/bin/pulseaudio --check) ]]; then
/usr/bin/pulseaudio --system
fi
sleep 10
done