Skip to content

Commit

Permalink
fix: up for 10s
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert authored Oct 10, 2024
1 parent 889d64e commit 066d03b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/restart-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ do
echo 'starting process...'
"$@" &
child=$!
sleep 5 && echo "killing pid $child..." && kill -9 "$child"
sleep 10 && echo "killing pid $child..." && kill -9 "$child"
while kill -0 "$child" 2> /dev/null; do # wait for child to exit (kill -0 is falsy if pid is gone)
sleep 1
done
echo 'killed...' && sleep 5
done
done

0 comments on commit 066d03b

Please sign in to comment.