@ac-essentials/misc-util
    Preparing search index...

    Function writePidFile

    • Write a PID to a file.

      Parameters

      • path: PathLike

        The path to the PID file.

      • pid: number

        The PID to write to the file.

      • Optionaloptions:
            | null
            | BufferEncoding
            | ObjectEncodingOptions & {
                flag?: OpenMode | undefined;
                flush?: boolean;
                mode?: Mode | undefined;
            } & Abortable
        • null
        • BufferEncoding
        • ObjectEncodingOptions & {
              flag?: OpenMode | undefined;
              flush?: boolean;
              mode?: Mode | undefined;
          } & Abortable
          • Optionalflag?: OpenMode | undefined
          • Optionalflush?: boolean

            If all data is successfully written to the file, and flush is true, filehandle.sync() is used to flush the data.

            false
            
          • Optionalmode?: Mode | undefined

      Returns Promise<void>