Add script to restart executable on change
This commit is contained in:
parent
2e77655cfa
commit
83bc804ee0
1 changed files with 7 additions and 0 deletions
7
restart-on-change
Executable file
7
restart-on-change
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
while true; do
|
||||||
|
$@ &
|
||||||
|
PID=$!
|
||||||
|
inotifywait $1
|
||||||
|
kill $PID
|
||||||
|
done
|
Loading…
Reference in a new issue