I have an app that has a feature that uses a service module. If the user enables this feature, it is enabled when the device is booted up using the "#StartAtBoot: True" in the services module
However, if the user has this feature disabled, I would like to not have the service running all the time.
So, I wanted to put some code in the service module that when the service is started, it will see if this feature is enabled, and if not, have the service close itself.
So in what service module event sub would I place "StopService" and should I using something other then StopService to accomplish this?