added pid/process check to daemon start functions