Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Resuscitate (restart) programs that exit with an error code
Haskell
tree: 52067e83c4

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
Makefile
README.mkdn
Resuscitate.hs

README.mkdn

Resuscitate

This is a program for restating programs if they exit with an error. It can be made to stop after a certain number of tries.

The real purpose is to separate periodic process refresh issues from the business logic the same way that cron separates periodic process execution from business logic.

It assumes that if a program exits with an error code, it needs to be restarted. It can work in sync with a program that stops processes after a period of time, to enable a kind of time-based refresh of the program.

Compiling

Requires GHC as it is written in Haskell.

With that in place, run

make all

It should generate a binary, resuscitate, which, when invoked without arguments explains how to use it.

Use

resuscitate false

That command will run false and then keep restarting it. It will hang.

Something went wrong with that request. Please try again.