Package Exports
- @mh-cbon/which-service-manager
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mh-cbon/which-service-manager) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
which-service-manager
Tells the service manager running on the current system.
Install
npm i @mh-cbon/which-service-manager --saveUsage
require('@mh-cbon/which-service-manager')(function (err, serviceManager, bin) {
// serviceManager is one of
// - systemd
// - upstart
// - chkconfig
// - launchd
// - sc
err && console.error(err);
!err && console.log("System found is %s", serviceManager);
!err && bin && console.log("It provides a binary path %s", bin);
})Todos
- add openrc support (gentoo)