Check and fix systemd socket file
As stated in #247 with the default setup the path /run/systemd-journal-gatewayd.sock may be a directory, not a file, we have to fix that
This commit is contained in:
parent
fea020da5b
commit
4a11e0c6c0
1 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,14 @@ if [ "$(systemctl is-active systemd-resolved)" = 'inactive' ]; then
|
|||
systemctl start systemd-resolved.service> /dev/null 2>&1;
|
||||
fi
|
||||
|
||||
# Check and fix systemd-journal-gatewayd socket location
|
||||
if [ ! -S "/run/systemd-journal-gatewayd.sock" ]; then
|
||||
info "Set up systemd-journal-gatewayd socket file"
|
||||
if [ "$(systemctl is-active systemd-journal-gatewayd.socket)" = 'active' ]; then
|
||||
systemctl stop systemd-journal-gatewayd.socket> /dev/null 2>&1;
|
||||
fi
|
||||
rm -rf "/run/systemd-journal-gatewayd.sock";
|
||||
fi
|
||||
# Enable and start systemd-journal-gatewayd
|
||||
if [ "$(systemctl is-active systemd-journal-gatewayd.socket)" = 'inactive' ]; then
|
||||
info "Enable systemd-journal-gatewayd"
|
||||
|
|
Loading…
Reference in a new issue