🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

systemd-notify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemd-notify

Notify systemd about start-up completion and other daemon status changes

1.0.0
latest
Source
npm
Version published
Weekly downloads
77
-32.46%
Maintainers
1
Weekly downloads
 
Created
Source

systemd-notify CircleCI

Notify systemd about start-up completion and other daemon status changes.

Installation

npm install systemd-notify

Usage

systemd-notify supports both callbacks and promises.

notify(opts = {}, [callback]);

const notify = require('systemd-notify');

const opts = {
    ready: true,
    status: 'Ready to go',
    pid: 1337
};


/**
 * Callback
 */

notify(opts, (err) => {
    /* Done */
});


/**
 * Promise
 */

notify(opts).then(() => {
    /* Done */
}).catch((err) => {
    /* Err */
});


/**
 * Async-await
 */

async function() {
    try {
        await notify(opts);
    }
    catch (e) {
        /* Err */
    }
}

For more information about the options, consult with the man-page: https://www.freedesktop.org/software/systemd/man/systemd-notify.html

License

MIT

Keywords

systemd

FAQs

Package last updated on 13 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts