README
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,