@mh-cbon/has-upstart

1.0.3 • Public • Published

has-upstart

Tells if linux upstart is available.

Usage

require('@mh-cbon/has-upstart')(function (err, initctlPath) {
  console.log("This system runs upstart : %s", err?"no":"yes");
  systemCtlPath && console.log("Found initctl at path : %s", initctlPath)
})

Testing

upstart friendly

To run the upstart friendly tests on a fedora-like box,

  • download and install vagrant
  • execute npm run test-ubuntu

upstart non friendly

To run the upstart non friendly tests on a fedora-like box,

  • download and install vagrant
  • execute npm run test-not-ubuntu

or just

  • download and install mocha
  • mocha test/not-ubuntu.js

Notes

More tests are needed on more boxes, have a look at this,

Readme

Keywords

Package Sidebar

Install

npm i @mh-cbon/has-upstart

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mh-cbon