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

    Function processKillByPidFile

    • Kill the process whose PID is stored in the PID file and optionally wait for it to terminate.

      Different signals can be used to terminate the process:

      • 'SIGTERM' (default): Politely asks the process to terminate, allowing it to perform cleanup operations.
      • 'SIGINT': Simulates an interrupt signal (like pressing Ctrl+C in a terminal). This allows the process to handle the signal and perform any necessary cleanup.
      • 'SIGKILL': Forces the process to terminate immediately. This signal cannot be caught or ignored by the process.

      If 'SIGKILL' is used, the PID file will be deleted automatically after the process is killed. Other signals, which are catch-able, should allow the process to handle its own cleanup, including removing the PID file if necessary.

      Parameters

      Returns Promise<void>