1.0.2 • Published 9 months ago

systemctl-node v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

systemctl-node

A simple control module from C bindings for service control with Systemd - systemctl lib (created for Ubuntu/Debian systems)

Installation

Install systemctl-node with npm

  npm install systemctl-node

Install systemctl-node with yarn

  yarn add systemctl-node

Usage/Examples

Requires privilege escalation - (run with sudo)

// app.js

const systemctl = require("systemctl-node");

/* Start service */
systemctl.start("nginx")

/* Stop service */
systemctl.stop("nginx")

/* Restart service */
systemctl.restart("nginx")

Run app

$ sudo node app.js

Authors

License

MIT

1.0.2

9 months ago

1.0.1

9 months ago