Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

systemd-daemon

bnf555ISC1.1.2

Native implementation of the sd-daemon subset of libsystemd. Providing socket activation, sd_notify, sd_booted and watchdog support.

systemd, activation, socket, daemon

readme

node-systemd-daemon

Native implementation of the sd-daemon subset of libsystemd. Providing socket activation, sd_notify, sd_booted and watchdog support.

Usage

`javascript var sd = require('systemd-daemon'); /* Enable watchdog reporting if required by the unit file. Use sd.watchdog.stop() once you shutdown your app. */ sd.watchdog.start();

/* Listen on systemd socket if available, else port 3000 / app.listen(sd.socket() || 3000, function() { / Notify systemd we've finished startup. To be used together with Type=notify in app.service */ sd.notify('READY=1'); });