https://github.com/chjj/daemonic
A dead-simple module to daemonize a node. No compilation required.
https://github.com/chjj/daemonic
Last synced: 4 months ago
JSON representation
A dead-simple module to daemonize a node. No compilation required.
- Host: GitHub
- URL: https://github.com/chjj/daemonic
- Owner: chjj
- License: other
- Created: 2012-04-11T04:48:32.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T19:11:30.000Z (about 6 years ago)
- Last Synced: 2024-12-26T21:04:48.994Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 19
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# daemonic
Daemonizer for node.js.
## Usage
``` js
// Daemonize process based on args.
require('daemonic')({
daemon: ['-d', '--daemonic']
});// Daemonize process based on args (with extra node flags).
// Will exec new process to load node flags otherwise.
require('daemonic')({
flags: ['--experimental-worker'],
daemon: ['-d', '--daemonic']
});// Always daemonize process (with extra node flags).
require('daemonic')({
flags: ['--experimental-worker'],
daemon: true
});
```## Contribution and License Agreement
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. ``## License
- Copyright (c) 2012-2019, Christopher Jeffrey (MIT License).
See LICENSE for more info.