This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Reruns any command when it exits. | |
while : | |
do | |
eval $@ | |
echo "Died... Re-running in 1 second." | |
sleep 1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Reruns any command when it exits with non-zero status. | |
while : | |
do | |
if eval $@ ; then | |
break | |
fi | |
echo "Died... Re-trying in 1 second." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ExUnit.Assertions | |
defmodule TestChild do | |
use GenServer | |
def start_link(child_id) do | |
GenServer.start_link(__MODULE__, child_id, name: {:via, Registry, {TestRegistry, child_id}}) | |
end | |
@impl true |
OlderNewer