Code Monkey home page Code Monkey logo

daemon-manager's Introduction

Daemon Manager

Daemon Manager allows non-root users to start and stop their own daemons. It is perfect for running FastCGI servers, torrent servers, or any other daemon that isn’t meant to run in the root context.

Simplicity

Daemon Manager make it easy to set up new daemons. Here’s an example config file for a Minecraft server:

dir=/home/someone/minecraft
start=exec java -Xmx256M -Xms256M -jar minecraft_server.jar nogui

Availability

Daemon Manager will monitor processes and restart a daemon if it exits or crashes.

Security

Daemon Manager allows the system administrator to decide which users can launch daemons and what users they are allowed to launch daemons as. For instance, it is common to launch FastCGI servers as a different user ("www-data" on Debian or Ubuntu, "apache" on Fedora).

Users are only allowed to see and control daemons which they have been given access to by the system administrator.

Similarities

There are many other programs out there that manage daemons. Daemon Manager has many similarities with upstart, systemd, supervise (daemon-tools), and System V init scripts but it has a different feature set and is not designed to replace any of those. Here are some similarities and differences:

  • Like upstart, systemd and supervise, Daemon Manager will respawn a daemon that exits prematurely.

  • Like standard system V init scripts, there are no dependencies.

  • Users can be given control of their own daemons. These daemons may run as the user or as any other user on the system (if the system administrator gives them permission).

  • Special users can be given control over other users daemons (think help desk operators at a hosting company).

  • Configuration is very simple. Daemon config files are generally 4 lines or fewer in length.

Rationale

Daemon Manager was originally conceived as a way to keep track of the myriad FastCGI servers on machines that host a number of heterogeneous web sites using servers like Lighttpd and Nginx. It became obvious as work progressed that the program wouldn’t be specific to just FastCGI daemons, but that there were many use cases for daemons that a user might want to run as themselves (or another non-privileged user) and control themselves.

Copyright © 2010-2013 by David Caldwell <[email protected]>

Daemon Manager is licensed under the GNU General Public License (v3.0). See the LICENSE file for details.

daemon-manager's People

Contributors

caldwell avatar

Watchers

James Cloos avatar  avatar  avatar

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.