From 2b17c9fbfc366ec62a49673e87a89b1a4d2a6be6 Mon Sep 17 00:00:00 2001 From: Christos Manios Date: Sun, 10 Nov 2019 21:29:33 +0200 Subject: [PATCH] Fix rsyslogd restarting run failed with error -3000 (#8) - Rsyslogd service restarts but does not reuse the existing .pid file. --- overlay/etc/sv/rsyslog/run | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/overlay/etc/sv/rsyslog/run b/overlay/etc/sv/rsyslog/run index 4428d6a..97d2f1d 100755 --- a/overlay/etc/sv/rsyslog/run +++ b/overlay/etc/sv/rsyslog/run @@ -1,3 +1,9 @@ #!/bin/sh +set -eu + +echo -n "Removing rsyslogd PID file before starting it ..." +(rm -f /var/run/rsyslogd.pid || true) +echo "OK" + exec rsyslogd -n -f /etc/rsyslog.conf