nresare / runasdaemon Goto Github PK
View Code? Open in Web Editor NEWA small tool to make command line programs behave as unix daemons
License: Apache License 2.0
A small tool to make command line programs behave as unix daemons
License: Apache License 2.0
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.