[CUPS] Rewrite based on @zajac-grzegorz work (#218)

* [CUPS] Rewrite based on @zajac-grzegorz work

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Max Winterstein
2023-11-16 22:52:44 +01:00
committed by GitHub
parent 932affd371
commit 273efd5db2
29 changed files with 174 additions and 180 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bashio
ulimit -n 1048576
bashio::log.info "Starting Avahi daemon from S6"
until [ -e /run/dbus/system_bus_socket ]; do
sleep 1s
done
avahi-daemon

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bashio
ulimit -n 1048576
bashio::log.info "Starting CUPS server from S6"
until [ -e /var/run/avahi-daemon/socket ]; do
sleep 1s
done
cupsd -f

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bashio
ulimit -n 1048576
bashio::log.info "Starting DBUS daemon from S6"
dbus-daemon --system --nofork

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1 @@
oneshot

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bashio
mkdir -p /var/run/dbus