www/fcgiwrap: wait for fcgiwrap named socket creation before chown
In certain circumstances postcmd function is called before named sockets be created by fcgiwrap, causing a startup failure. This change leave up to 5 seconds to fcgiwrap to properly start. Bump PORTREVISION. PR: 219753 Reported by: Shuichi KITAGUCHI <ki@hh.iij4u.or.jp>
This commit is contained in:
parent
d47ef88916
commit
f1dca9e0b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531530
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= fcgiwrap
|
||||
PORTVERSION= 1.1.0
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= rodrigo@FreeBSD.org
|
||||
|
@ -79,6 +79,11 @@ fcgiwrap_postcmd() {
|
||||
return
|
||||
;;
|
||||
esac
|
||||
# Wait up to 5 seconds for the socket file
|
||||
for i in $(seq 5); do
|
||||
[ -e ${fcgiwrap_socket#unix:} ] && break
|
||||
sleep 1
|
||||
done
|
||||
if [ -n "${fcgiwrap_socket_mode}" ]; then
|
||||
chmod ${fcgiwrap_socket_mode} ${fcgiwrap_socket#unix:}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user