Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafintosh/dmon
Daemon control utility that aims to be cross-platform.
https://github.com/mafintosh/dmon
Last synced: 21 days ago
JSON representation
Daemon control utility that aims to be cross-platform.
- Host: GitHub
- URL: https://github.com/mafintosh/dmon
- Owner: mafintosh
- Created: 2013-06-02T21:54:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-21T11:50:16.000Z (about 11 years ago)
- Last Synced: 2024-10-16T23:38:09.761Z (28 days ago)
- Language: Shell
- Homepage:
- Size: 328 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dmon
Daemon control utility that aims to be cross-platform.
It is written in bash and build using [bashkit](https://github.com/mafintosh/bashkit)One-line install
curl -fs https://raw.github.com/mafintosh/dmon/master/install | bash && . $(bashkit rc)
## Usage
To create a new daemon simply run
$ dmon create my-daemon-name file.sh
All daemons are configured to be restarted when crashing and launched when the system boots.
You can also create a daemon from a command using `--command` or `-c`$ dmon create my-daemon-name --command "node server.js"
To type in the command using your default editor use `--interactive` or `-i`
$ dmon create my-daemon-name --interactive # enter the command in your editor
If you don't want the daemon to launch when the system boots use `--no-boot` or `-n`
$ dmon create my-daemon-name --no-boot --command "node server.js"
After creating a daemon you need to start it
$ dmon start my-daemon-name
You can also pass `--start` to `dmon create` to start it right away.
To stop the daemon use$ dmon stop my-daemon-name
Run `dmon --help` to get a list of all commands available or use autocompletion `dmon `.
`dmon create --` will list available options to create.## OS Support
dmon has currently been tested and works on
* Ubuntu (using upstart)
* Mac OSX (using launchd)
* Debian/Raspbian (using init.d)It should also work on other system that provides either upstart, launchd or init.d