2.1.0
Got some inspiration from @indexzero daemon.node project and improved the things. Big thanks! 🍰
Improved the command line tool as well:
$ ./bin/diable -h
Usage: diable [options]
Options:
-p, --path <path> The script path.
-e, --exec <app> The executable app.
-a, --args <args> The arguments to pass.
-c, --cwd <path> The CWD where the daemonized process will run.
-h, --help Displays this help.
-v, --version Displays version information.
Examples:
diable -p path/to/script.js
diable -p some-script.sh -e sh
diable -p path/to/script.js -a '--some args'
Documentation can be found at https://github.com/IonicaBizau/diableThe things are smoother now! 🌟