fix: remove socket before start
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-22 20:40:36 -03:00
parent 5058ae2eed
commit 8d96f4e173

View file

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