coreybutler / coreybutler/node-linux

Support enabling and disabling services

Open
#16 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
424
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Besides installing/uninstalling and starting/stopping a service, the user should be able to enable and disable it.

Use case: in my install.js right now I can only install and start my service, but I cannot schedule it for automatic start on every boot, so installation requires manual operation which I'd rather avoid. My target is to be able to run "sudo npm install -g http://my/host/my/package.tgz", and have everything automatically configured for me.

I'm working on this modification:
- New `enable` property in the systemv module that runs `'update-rc.d '+this.label+' defaults'`
- New `disable` property in the systemv module that runs `'update-rc.d -f '+this.label+' remove'`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.