The Service action looks for the startup type in the registry at HKEY_LOCAL_MACHINE\System\CurrentControlSet\servic es\<servicename>
looking for a DWORD value named Start under that key. The action will attempt to convert the Service name property to the key name via the
GetServiceKeyName API and use that if available.
Maybe that value isn't defined for your custom service?