Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an OS service manager.

Hierarchy

  • ServiceManager

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ServiceManager(): any
  • Returns any

Properties

services

services: OSService[]

Registered services.

Methods

find

  • Finds a service by ID.

    Parameters

    • id: string

      The ID of the service to find.

    Returns OSService

getAll

  • Returns all registered services.

    Returns OSService[]

    The services.

parse

  • Parses a service file.

    Parameters

    • path: string

      The path to the service file to parse.

    Returns Promise<OSService>

register

  • Registers a service.

    Parameters

    Returns void

start

  • start(service: string | OSService, args: string[]): Promise<void>
  • Starts a service.

    Parameters

    • service: string | OSService

      The service/service ID to start.

    • args: string[]

      Service arguments.

    Returns Promise<void>

stop

  • stop(service: string | OSService, args: string[]): Promise<void>
  • Stops a service.

    Parameters

    • service: string | OSService

      The service/service ID to start.

    • args: string[]

      Service arguments.

    Returns Promise<void>

Generated using TypeDoc