is-systemd

0.0.2 • Public • Published

is-systemd

is-systemd is a tiny module in nodejs which returns true if the current nodejs app was launched from systemd. It works by checking if the parent pid (process id) equals to 1.

Running as a systemd service:

const isSystemd = require('is-systemd');
// true

Any other mode:

const isSystemd = require('is-systemd');
// false

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i is-systemd

      Weekly Downloads

      6

      Version

      0.0.2

      License

      MIT

      Last publish

      Collaborators

      • okoyl