Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
117
decreased by-15.83%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc