more accurately check running status of nginx