orca --replace should not kill script which is starting it
#!/bin/bash set -x orca --replace & disown true "INFO: waiting for 5 seconds to make sure orca has started." sleep 5 dsudo easyorca-root
+ disown + orca --replace + true 'INFO: waiting for 5 seconds to make sure orca has started.' + sleep 5 Killed
Perhaps a "pgrep" is matching too much?