start a process and respawn if it dies
npm install keepalivekeepalive
=========
Keepalive is a simple bash script that executes a process and respawns it if it
exits.
Usage
-----
``sh
keepalive [--num=
ARGUMENTS
user Username which ia used to run service
log Path to log file
cmd Path to command
cmdopts Options to pass to command
OPTIONS
--num=
`
Example
-------
`sh`
$ keepalive nobody my.log /bin/my-service --options foo
Signals
-------
Keepalive recognizes the following signals:
* HUP: reopen log filesTERM
* : send TERM to process group (terminates service)
Change Log
----------
* 3.0.0: bump version to reflect introduction of a breaking change2.1.0
* : --num option (WARNING: this was unintentionally a breaking change)2.0.1
* : fix issues reopening log file2.0.0
* : required args1.3.1
* : fix issues killing process group1.3.0
* : --user option1.2.0
* : --logfile option1.1.0
* : log support and reopen log on HUP1.0.1
* : kill launched process on TERM1.0.0`: initial release
*