Pass in a pid_file rather than a pid_dir.
Use the passed pid_file.
Use the passed pid_file.
Use the passed pid_file.
Use the passed pid_file.