Expose systemd-journal-gatewayd
This commit is contained in:
parent
00d765fcd9
commit
70ac119cd5
3 changed files with 21 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Hass.io supervisor
|
Description=Hass.io supervisor
|
||||||
Requires=docker.service dbus.service
|
Requires=docker.service dbus.service
|
||||||
Wants=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
|
After=docker.service dbus.service network-online.target hassio-apparmor.service time-sync.target systemd-journal-gatewayd.socket
|
||||||
StartLimitIntervalSec=60
|
StartLimitIntervalSec=60
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
ConditionPathExists=/run/dbus/system_bus_socket
|
ConditionPathExists=/run/dbus/system_bus_socket
|
||||||
|
|
|
@ -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
|
|
@ -82,6 +82,7 @@ if [ -z "${SUPERVISOR_CONTAINER_ID}" ]; then
|
||||||
--name hassio_supervisor \
|
--name hassio_supervisor \
|
||||||
--privileged --security-opt apparmor="hassio-supervisor" \
|
--privileged --security-opt apparmor="hassio-supervisor" \
|
||||||
-v /run/docker.sock:/run/docker.sock:rw \
|
-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/dbus:/run/dbus:ro \
|
||||||
-v /run/supervisor:/run/os:rw \
|
-v /run/supervisor:/run/os:rw \
|
||||||
-v /run/udev:/run/udev:ro \
|
-v /run/udev:/run/udev:ro \
|
||||||
|
|
Loading…
Reference in a new issue