fix: remove socket before start
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
5058ae2eed
commit
8d96f4e173
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue