Skip to content

Okoyl/is-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check if the process runs under systemd.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published