orca --replace should not kill script which is starting it
/usr/bin/eorca
#!/bin/bash
set -x
orca --replace & disown
true "INFO: waiting for 5 seconds to make sure orca has started."
sleep 5
dsudo easyorca-root
eorca
+ 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?