UNPKG

systemd-daemon

Version:

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

14 lines (10 loc) 198 B
var listen_fds = require('./listen-fds'); module.exports = function(index) { index = index || 0 if (listen_fds() < (index+1)) { return null; } return { fd: listen_fds.start + index }; }