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