From 4e1427f6f68ae512040dba98baeee73afa007776 Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Wed, 14 Sep 2022 03:14:16 +0000 Subject: [PATCH] Enable and start systemd-journal-gatewayd.socket --- homeassistant-supervised/DEBIAN/postinst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant-supervised/DEBIAN/postinst b/homeassistant-supervised/DEBIAN/postinst index e6332a7..8b03d6b 100755 --- a/homeassistant-supervised/DEBIAN/postinst +++ b/homeassistant-supervised/DEBIAN/postinst @@ -31,6 +31,13 @@ if [ "$(systemctl is-active systemd-resolved)" = 'inactive' ]; then systemctl start systemd-resolved.service> /dev/null 2>&1; fi +# Enable and start systemd-journal-gatewayd +if [ "$(systemctl is-active systemd-journal-gatewayd.socket)" = 'inactive' ]; then + info "Enable systemd-journal-gatewayd" + systemctl enable systemd-journal-gatewayd.socket> /dev/null 2>&1; + systemctl start systemd-journal-gatewayd.socket> /dev/null 2>&1; +fi + # Restart Docker service info "Restarting docker service" systemctl restart "${SERVICE_DOCKER}"