aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-bts-latest/respawn.sh
blob: ae5cf6028979ad38c3d0abceaf03a0a5a41d9d84 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

trap "kill 0" EXIT

while [ -e /etc/passwd ]; do
	$* &
	LAST_PID=$!
	wait $LAST_PID
done