Just add a loop and recheck the status property until it returns "stopped". There are also stop_pending and start_pending values. Checkout some of the service related UDF's in the library.
_________________________
Home page: http://www.kixhelp.com/hb/