See the UDF Forum, it contains a couple of UDFs that check whether a service is runing. Also, if the service is not running then the ScheduleTask UDF errors out, thus there's build-in error checking.
_________________________
There are two types of vessels, submarines and targets.