mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-30 19:26:07 +02:00
Add configurable data location
This commit is contained in:
7
birdnet-pipy/rootfs/etc/services.d/api/run
Normal file
7
birdnet-pipy/rootfs/etc/services.d/api/run
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -euo pipefail
|
||||
export PYTHONPATH=/app
|
||||
bashio::net.wait_for 5001 127.0.0.1 300
|
||||
cd /app
|
||||
exec python3 -m core.api
|
||||
5
birdnet-pipy/rootfs/etc/services.d/icecast/run
Normal file
5
birdnet-pipy/rootfs/etc/services.d/icecast/run
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -euo pipefail
|
||||
export PULSE_SERVER=unix:/run/pulse/native
|
||||
exec /usr/local/bin/start-icecast.sh
|
||||
8
birdnet-pipy/rootfs/etc/services.d/main/run
Normal file
8
birdnet-pipy/rootfs/etc/services.d/main/run
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -euo pipefail
|
||||
export PYTHONPATH=/app
|
||||
export PULSE_SERVER=unix:/run/pulse/native
|
||||
bashio::net.wait_for 5002 127.0.0.1 300
|
||||
cd /app
|
||||
exec python3 -m core.main
|
||||
6
birdnet-pipy/rootfs/etc/services.d/model/run
Normal file
6
birdnet-pipy/rootfs/etc/services.d/model/run
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -euo pipefail
|
||||
export PYTHONPATH=/app
|
||||
cd /app
|
||||
exec python3 -m model_service.inference_server
|
||||
4
birdnet-pipy/rootfs/etc/services.d/nginx/run
Normal file
4
birdnet-pipy/rootfs/etc/services.d/nginx/run
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -euo pipefail
|
||||
exec nginx -g "daemon off;"
|
||||
Reference in New Issue
Block a user