Skip to content

Linux forever, Unix forever, run another program forever, inspired by the forever library in node.js

Notifications You must be signed in to change notification settings

BigSully/forever

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Monitor a program and resume it when it dies, either exiting abnormally or killed by OOM in linux.

Usage:
./forever /usr/bin/BINARY_NAME options
Example:
CWD=./myproject/ ./forever ~/.nvm/versions/node/v8.14.0/bin/node server.js -t

Note:
Make sure monitor the right process, the executable, don't exit. Cause we will monitor its pid.

Build universal version:
cc forever.c -O -o forever

Deprecated:
Build osx version:
cc forever-osx.c -framework CoreFoundation -O -o forever-osx

About

Linux forever, Unix forever, run another program forever, inspired by the forever library in node.js

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published