From ca00d8967972194498e0decae0113bc79b395cfe Mon Sep 17 00:00:00 2001 From: Nathan Genret Date: Fri, 15 Nov 2024 08:18:57 +0100 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20journalisation/jo?= =?UTF-8?q?urnald-rcv.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ap32-mon/journalisation/journald-rcv.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ap32-mon/journalisation/journald-rcv.sh diff --git a/ap32-mon/journalisation/journald-rcv.sh b/ap32-mon/journalisation/journald-rcv.sh new file mode 100644 index 0000000..8f3b270 --- /dev/null +++ b/ap32-mon/journalisation/journald-rcv.sh @@ -0,0 +1,12 @@ +#!/bin/bash +sudo timedatectl set-timezone Europe/Paris +sudo apt-get update +sudo apt-get install -y systemd-journal-remote +sudo systemctl enable --now systemd-journal-remote.socket +sudo cp /lib/systemd/system/systemd-journal-remote.service /etc/systemd/system +sudo sed -i 's/--listen-https=-3/--listen-http=-3/' /etc/systemd/system/systemd-journal-remote.service +[[ -d /var/log/journal/remote ]] || sudo mkdir /var/log/journal/remote +sudo chown systemd-journal-remote /var/log/journal/remote +sudo systemctl daemon-reload +sudo systemctl restart systemd-journal-remote.service + ss -lnt