better pid checking on service startup