systemd-daemon

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
systemd-daemon
901.1.25 years ago8 years agoMinified + gzip package size for systemd-daemon in KB

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'); });