create the pid file before forking, so we can complain to stderr -- kevin brintnall