Make StartAtBoot variable?

coder22

Member
Licensed User
Longtime User
Is it possible to somehow make StartAtBoot in my service switchable between true/false?

If the user had selected to have the service off and startatboot = true, then it runs on system reboot. Thanks!
 

MotoMusher

Active Member
Licensed User
Longtime User
Another option is to have a "shell" service one layer higher. Always start that at boot. Read your variable in the shell service. If it is start at boot, start the other "real" service. If not, just stop the shell service.
 
Upvote 0
Top