Skip to content

Resuscitate (restart) programs that exit with an error code

Notifications You must be signed in to change notification settings

revence27/Resuscitate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Resuscitate (restart) programs that exit with an error code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published