Expose systemd-journal-gatewayd

This commit is contained in:
Matheson Steplock 2022-09-14 02:16:06 +00:00 committed by GitHub
parent 00d765fcd9
commit 70ac119cd5
3 changed files with 21 additions and 2 deletions

View file

@ -1,8 +1,8 @@
[Unit]
Description=Hass.io supervisor
Requires=docker.service dbus.service
Wants=network-online.target hassio-apparmor.service time-sync.target
After=docker.service dbus.service network-online.target hassio-apparmor.service time-sync.target
Wants=network-online.target hassio-apparmor.service time-sync.target systemd-journal-gatewayd.socket
After=docker.service dbus.service network-online.target hassio-apparmor.service time-sync.target systemd-journal-gatewayd.socket
StartLimitIntervalSec=60
StartLimitBurst=5
ConditionPathExists=/run/dbus/system_bus_socket

View file

@ -0,0 +1,18 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Journal Gateway Service Socket
Documentation=man:systemd-journal-gatewayd(8)
[Socket]
ListenStream=/run/systemd-journal-gatewayd.sock
[Install]
WantedBy=sockets.target

View file

@ -82,6 +82,7 @@ if [ -z "${SUPERVISOR_CONTAINER_ID}" ]; then
--name hassio_supervisor \
--privileged --security-opt apparmor="hassio-supervisor" \
-v /run/docker.sock:/run/docker.sock:rw \
-v /run/systemd-journal-gatewayd.sock:/run/systemd-journal-gatewayd.sock:rw \
-v /run/dbus:/run/dbus:ro \
-v /run/supervisor:/run/os:rw \
-v /run/udev:/run/udev:ro \