Added service registration update mode
fixed SCM service startup code