docker-playground/osmo-bts-latest/respawn.sh

10 lines
100 B
Bash
Executable File

#!/bin/sh
trap "kill 0" EXIT
while [ -e /etc/passwd ]; do
$* &
LAST_PID=$!
wait $LAST_PID
done