@kronos-integration/service-systemd

kronos systemd integration

Usage no npm install needed!

<script type="module">
  import kronosIntegrationServiceSystemd from 'https://cdn.skypack.dev/@kronos-integration/service-systemd';
</script>

README

npm License minified size 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