new file: README.rst

This commit is contained in:
fox hop 2016-04-16 18:31:24 -04:00
parent a64a3446bc
commit b0d97dfa86

46
README.rst Normal file
View file

@ -0,0 +1,46 @@
Kira
####
Kira (bash-kira): a small bash script for killing programs which run too long.
The first time you run Kira, it begins watching the pids of a program.
The next time you run Kira, it will kill pids if they are still running.
usage
=====
Kira expects two arguments, the `process-regex` and the human readable `program-name`.
.. code-block:: bash
./kira.sh <process-regex> <program-name>" >&2
For example:
.. code-block:: bash
./kira.sh /usr/bin/uri2png uri2png"
cron
====
This example kills a program if it has been running for 1-2 minutes.
.. code-block:: bash
* * * * * /usr/bin/kira.sh /usr/bin/uri2png uri2png
Note: Cron does not support sub minute scheduling, but Kira should.
files
=====
Kira manages two files:
/tmp/kira-$PROGRAM_NAME.log:
Kira tracks when/what is killed here.
/tmp/kira-$PROGRAM_NAME.pids:
Kira stores pids currently being monitored here.