00mjk / finitd Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jemfinch/finitd
A small interpreter for more easily writing init scripts.
License: BSD 3-Clause "New" or "Revised" License
This project forked from jemfinch/finitd
A small interpreter for more easily writing init scripts.
License: BSD 3-Clause "New" or "Revised" License
Though more documentation should be forthcoming, this basic README will have to do for now. I really hate writing init.d scripts. They're always a bunch of arcane /bin/sh invocations and I usually find the end results to be less reliable than the majority of other tools I use. So instead, I wrote finitd (pronounced "fin it dee" or "eff initd"). It is a configuration file interpreter: you write a basic configuration file explaining what command you want to run, where you want to redirect its stdin/stdout, etc. (basically all the options you would consider writing writing a program which daemonizes itself) and finitd will interpret that configuration file and act as an init.d script, with standard start/stop/restart commands (and a few others). finitd has a few additional features, though. If configured to "watch" the process it spawns, it will daemonize, fork and exec the configured process, and then wait on it, optionally taking action (such as restarting the process) when the process exits. This allows finitd to be a more reliable "babysitter" for processes than many other such (typically homegrown) programs which grep through `ps` output, etc. To do your own experiments with finitd, just run "finitd /dev/null annotate" and finitd will output an annotated configuration file showing all the variables and describing their function. /dev/null here functions as finitd's configuration file, since that must be the first argument to finitd. Alternatively, finitd can receive its configuration on the command line: finitd /dev/null --help will explain that. You can configure additional commands (e.g., for a "graceful" stop, or a "fullstatus" command) by adding them to the "finitd.commands.arbitrary" group. These commands will run in the same exact environment as all other commands, and so may be useful for debugging issues with your finitd configuration file: if you want to see the current directory your finitd script is running in, you can add the following line to your configuration file: "finitd.commands.arbitrary.pwd.command: pwd".
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.