Pass NULL instead of getprogname() to pidfile(). pidfile() will automatically