Giter Site home page Giter Site logo

dmon's Introduction

dmon

Daemon control utility that aims to be cross-platform. It is written in bash and build using 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 <tab><tab>. dmon create --<tab><tab> 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

dmon's People

Contributors

freeall avatar mafintosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

freeall

dmon's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.