Giter Site home page Giter Site logo

runasdaemon's Introduction

runasdaemon - A small tool to make command line programs behave as unix daemons

People running unix like systems expect daemon processes behave in certain
ways. A proper daemon is expected to detach from the terminal or script from
which it was started. It is expected to write it's output to syslog and it is
expected to shut down gracefully when receiving the TERM signal.

Software developers, on the other hand, sometimes write software that fails to
meet those expectations. Unfortunately some software environments, such as
java, is missing critical functionality to make daemons behave the unix way.

One example of this, the initial use case of this project, is the minecraft
server. It is distributed as a jar file and when started it doesn't detach
from the controlling terminal. Logging is written to standard out and there
doesn't seem to be any signal handlers installed.

This projects provides a program, runasdaemon, that is used to control another
program. It does a double fork, detaching from the controlling terminal, any
output from the child program is redirected to syslog.

Dependencies
------------

There are no runtime dependencies besides a non-ancient python 2 environment.
It has been developed with python 2.6.6. The tests are written to be run with
nosetest.


License
-------

runasdaemon is free software. This code is released under the Apache Software
License, version 2. Details can be found in the file LICENSE

All code is Copyright (c) 2013 Noa Resare

runasdaemon's People

Stargazers

Jyrki Pulliainen avatar

Watchers

Noa Resare avatar James Cloos 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.