mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-05-12 06:16:06 +01:00
[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:
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
longrun
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
longrun
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
ulimit -n 1048576
|
||||
|
||||
bashio::log.info "Starting DBUS daemon from S6"
|
||||
|
||||
dbus-daemon --system --nofork
|
||||
@@ -0,0 +1 @@
|
||||
longrun
|
||||
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bashio
|
||||
|
||||
mkdir -p /var/run/dbus
|
||||
|
||||
Reference in New Issue
Block a user