mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-05 15:15:58 +02:00
try systemd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user