@kronos-integration/service-systemd

2.6.0 • Public • Published

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

@kronos-integration/service-systemd

kronos systemd integration

  • sync node state to systemd with notify (done)
  • propagate config into kronos (done)
  • propagate socket activations into kronos (partly)
  • start / stop / restart / reload initiated from systemd (partly)
  • log into journal (done)

usage

API

Table of Contents

JournalLogger

Extends ServiceLogger

Forward logs entries to the journal.

FileDescriptor

Type: Object

Properties

SystemdConfig

Extends ServiceConfig

Provides config from CONFIGURATION_DIRECTORY. Also injects listeningFileDescriptors into the config

Properties

  • configurationDirectory string taken from CONFIGURATION_DIRECTORY

listeningFileDescriptors

listeningFileDescriptors as passed in LISTEN_FDS and LISTEN_FDNAMES.

Returns Array<FileDescriptor>

loadConfig

Load config from configuration dir. Additionally pass listeninfFileDescriptions into config.

ServiceSystemd

Extends ServiceProviderMixin(Service, JournalLogger, SystemdConfig)

Kronos bridge to systemd:

  • sync node state to systemd with notify
  • propagate config into kronos world
  • propagate socket activations into kronos (partly)
  • start / stop / restart / reload initiated from systemd
  • log into journal

endpoints

Definition of the predefined endpoints.

  • info in

Returns Object predefined endpoints

install

With npm do:

npm install @kronos-integration/service-systemd

license

BSD-2-Clause

Package Sidebar

Install

npm i @kronos-integration/service-systemd

Weekly Downloads

201

Version

2.6.0

License

BSD-2-Clause

Unpacked Size

26.7 kB

Total Files

5

Last publish

Collaborators

  • arlac77
  • darlenya