mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-18 10:28:17 +01:00
change services logic
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: avahi alias"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "/bin/bash -c \"/usr/bin/avahi-publish -a -R %I $(hostname -I |cut -d' ' -f1)\""
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: birdnet analysis"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "$PYTHON_VIRTUAL_ENV /usr/local/bin/birdnet_analysis.py"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/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-Pi Log' birdnet_log.sh"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: birdnet recording"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "/usr/local/bin/birdnet_recording.sh"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: birdnet stats"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "$HOME/BirdNET-Pi/birdnet/bin/streamlit run $HOME/BirdNET-Pi/scripts/plotly_streamlit.py --browser.gatherUsageStats false --server.address localhost --server.baseUrlPath '/stats'"
|
||||
4
zzz_draft_birdnet-pi/rootfs/custom-services.d/caddy
Normal file
4
zzz_draft_birdnet-pi/rootfs/custom-services.d/caddy
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: caddy"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "/usr/local/bin/caddy run --config /etc/caddy/Caddyfile"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/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"
|
||||
4
zzz_draft_birdnet-pi/rootfs/custom-services.d/getty
Normal file
4
zzz_draft_birdnet-pi/rootfs/custom-services.d/getty
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: getty"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "/sbin/agetty --autologin ${USER} --noclear %I $TERM"
|
||||
4
zzz_draft_birdnet-pi/rootfs/custom-services.d/livestream
Normal file
4
zzz_draft_birdnet-pi/rootfs/custom-services.d/livestream
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: livestream"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "/usr/local/bin/livestream.sh"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: spectrogram viewer"
|
||||
exec \
|
||||
s6-setuidgid "$USER" "/usr/local/bin/spectrogram.sh"
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/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-Pi Terminal' login"
|
||||
Reference in New Issue
Block a user