vagrant/journald-remote/journald-rcv.sh
2023-01-07 00:20:05 +01:00

19 lines
494 B
Bash

#!/bin/bash
sudo apt-get update
sudo apt-get install -y systemd-journal-remote
sudo systemctl enable 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 ss -lntp4