Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Process

Hierarchy

  • Process

Index

Constructors

Properties

bootTime: number
initialized: boolean
initializers: Initializers
loadInitializers: (() => Promise<void>)[]
running: boolean
shuttingDown: boolean
startCount: number
startInitializers: (() => Promise<void>)[]
started: boolean
stopInitializers: (() => Promise<void>)[]
stopReasons?: string[]
stopped: boolean

Methods

  • fatalError(errors?: ErrnoException | ErrnoException[], type: string): Promise<void>
  • flattenOrderedInitializer<T>(collection: {}): T[]
  • initialize(): Promise<void>
  • registerProcessSignals(stopCallback?: (exitCode?: number) => void): void
  • Register listeners for process signals and uncaught exceptions & rejections. Try to gracefully shut down when signaled to do so

    Parameters

    • stopCallback: (exitCode?: number) => void = ...
        • (exitCode?: number): void
        • Parameters

          • Optional exitCode: number

          Returns void

    Returns void

  • restart(): Promise<void>
  • start(): Promise<void>
  • stop(stopReasons?: string | string[]): Promise<void>
  • Stop the Actionhero Process

    Parameters

    • stopReasons: string | string[] = []

    Returns Promise<void>

Generated using TypeDoc