Giter VIP home page Giter VIP logo

puppet-daemontools's Introduction

Puppet module to manage daemontools config
==========================================

Dan Bernstein's daemontools package (http://cr.yp.to/daemontools.html) is a
neat, easy way to daemonise pretty much any program you might have laying
around, make sure it keeps running, log it's output, and so on.

This module was originally written by the "immerda project group
<admin+puppet(at)immerda.ch>", and has been significantly modified by Matt
Palmer <[email protected]>.  It is provided under the terms of the GNU
Public Licence, version 3.


Usage
-----

In every node you wish to run daemontools on, just:

    include daemontools

This will install a 'daemontools' package (make sure one is available in
your OS' default package repo), and (if possible) make sure it starts on
boot.

From there, you can define services to run with the daemontools::service
type.  The name of the resource is the directory in /service that will be
used, and the type takes the following parameters:

* ensure (optional; default 'running'): What state you want the service to
  be in.  Valid values are:
  - running: Configured and doing it's thing.
  - present: Configured, but not running.
  - absent: Removed completely.  /service/$name will not exist.

* program (mandatory unless ensure => absent): The binary that you want to
  run for the service.  This will be written into the run script.

* user (optional; default 'root'): The user to run the program as.  This
  will be passed to envuidgid.

* logaction (optional; default empty): If specified, the appropriate
  configuration will be created to run a multilog instance (as the same user
  as the main program) using the 'log' directory as described in the
  'svscan' documentation.  The value of this parameter will be passed as the
  arguments to multilog.  Quoting for this parameter can get exciting, and
  you'll need to make the directory for the logs yourself.

puppet-daemontools's People

Contributors

duritong avatar foonix avatar

Watchers

 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.