Hi!
It's possible that two masters exist at the same time.
kill -USR2 pid;
sleep(2);
if [ -f ${oldbinpidfile} -a -f ${pidfile} ];
# New master doesn't success in two seconds
kill -QUIT oldpid;
fi
We assume that the previous exist master is old,
I want to know which master process the request that's accepted,
maybe I can design the variable $master with value old or new.
Is it possible to implement?
Thanks!
B.R.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel