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 ;;