view bin/forever @ 75:271cbb745f91

Updated for >=7.3.8
author samer
date Mon, 05 Oct 2015 00:47:43 +0100
parents 7d34f4b6df69
children
line wrap: on
line source
#!/bin/sh
# Usage: forever <command> <arg> ...
# This will run a command plus any arguments repeatedly for ever unless command returns non-zero exit code
if $*; then
	exec forever $*
fi