From 78ac5ec91fcae00e8382a6098df3893fddda184a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 30 Nov 2023 15:07:37 +0100 Subject: [PATCH] script journald receveur --- Partie2/Wireguard/srvlog31/journald-rcv.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Partie2/Wireguard/srvlog31/journald-rcv.sh diff --git a/Partie2/Wireguard/srvlog31/journald-rcv.sh b/Partie2/Wireguard/srvlog31/journald-rcv.sh new file mode 100644 index 0000000..a425ef7 --- /dev/null +++ b/Partie2/Wireguard/srvlog31/journald-rcv.sh @@ -0,0 +1,10 @@ +#!/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