restart.sh (view raw)
1 2 3 4 5 6
#!/bin/sh pkill honk nohup ./honk & pid="$(pgrep honk)" printf 'honk pid: %s' "$pid"