diff --git a/restart-on-change b/restart-on-change new file mode 100755 index 0000000..82bc790 --- /dev/null +++ b/restart-on-change @@ -0,0 +1,7 @@ +#!/bin/sh +while true; do + $@ & + PID=$! + inotifywait $1 + kill $PID +done