other version

This commit is contained in:
Alexandre
2024-04-26 16:54:30 +02:00
parent 3b051812ee
commit 159ab584f0
96 changed files with 615 additions and 355 deletions

View File

@@ -1,14 +0,0 @@
#!/usr/bin/with-contenv bashio
# 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

View File

@@ -1,9 +0,0 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# Waiting for dbus
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
echo "Starting service: php pfm"
exec /usr/sbin/php-fpm* -F

View File

@@ -1,9 +0,0 @@
#!/usr/bin/with-contenv bashio
# Waiting for dbus
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
echo "Starting service: avahi daemon"
exec \
avahi-daemon --no-chroot

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: birdnet analysis"
exec \
s6-setuidgid "$USER" "$PYTHON_VIRTUAL_ENV" /usr/local/bin/birdnet_analysis.py

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: birdnet log"
exec \
s6-setuidgid "$USER" /usr/local/bin/gotty --address localhost -p 8080 --path log --title-format "birdnet-pi2 Log" birdnet_log.sh

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: birdnet recording"
exec \
s6-setuidgid "$USER" /usr/local/bin/birdnet_recording.sh

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: birdnet stats"
exec \
s6-setuidgid "$USER" "$HOME"/birdnet-pi2/birdnet/bin/streamlit run "$HOME"/birdnet-pi2/scripts/plotly_streamlit.py --browser.gatherUsageStats false --server.address localhost --server.baseUrlPath "/stats"

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: chart viewer"
exec \
s6-setuidgid "$USER" "$PYTHON_VIRTUAL_ENV" /usr/local/bin/daily_plot.py --daemon --sleep 2

View File

@@ -1,9 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: getty"
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
exec \
s6-setuidgid "$USER" /sbin/agetty --autologin "${USER}"
--noclear %I "$TERM"

View File

@@ -1,8 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: livestream"
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
exec \
s6-setuidgid "$USER" /usr/local/bin/livestream.sh

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: spectrogram viewer"
exec \
s6-setuidgid "$USER" /usr/local/bin/spectrogram.sh

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: web terminal"
exec \
s6-setuidgid "$USER" /usr/local/bin/gotty --address localhost -w -p 8888 --path terminal --title-format "birdnet-pi2 Terminal" login

View File

@@ -1,12 +0,0 @@
#!/usr/bin/with-contenv bashio
# Dependencies
until [[ -e /var/run/dbus/system_bus_socket ]] && [[ -e /run/php/php*-fpm.sock ]]; do
sleep 1s
done
# Correct fpm.sock
sed -i "s|/run/php/php-fpm.sock|$(find /run/php -name *.sock)|g" /etc/caddy/Caddyfile
echo "Starting service: caddy"
exec \
s6-setuidgid "$USER" /usr/bin/caddy run --config /etc/caddy/Caddyfile