Wait for pidfile to exist when starting with Redhat init script

Fixes #5359