In my previous message I was referring to another issue, that of creating the pidfile before or after a chroot for a chroot setup. Sorry for the confusion.