The path to the PID file.
The PID to write to the file.
Optionaloptions: Optionalflag?: OpenMode | undefinedOptionalflush?: booleanIf all data is successfully written to the file, and flush
is true, filehandle.sync() is used to flush the data.
Optionalmode?: Mode | undefined
Write a PID to a file.