From 8d96f4e173b6932d72e4739b18cd205cea970143 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 22 Apr 2023 20:40:36 -0300 Subject: [PATCH] fix: remove socket before start --- access_logd.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/access_logd.sh b/access_logd.sh index 9f9f975..879750c 100755 --- a/access_logd.sh +++ b/access_logd.sh @@ -13,6 +13,9 @@ case $1 in # Copy default database install -m 640 -o nobody /var/lib/access_log.sqlite3 /var/log/access_log.sqlite3 + # Remove socket if previous run ended suddendly + rm -f /tmp/access_log.socket + # Read from fifo and load into database daemonize -p /run/access_logd.pid -u nginx /usr/local/bin/syslogize /usr/bin/access_log $ACCESS_LOGS_FLAGS ;;