There are some services I would like to start only when the machine is on mains power. Is there a way at boot to detect mains vs battery then start or not start things like MariaDB?
On battery, I might manually start a service when needed then stop it when not needed. Perhaps scripts serviceson and servicesoff I can run by hand then some sort of boot detection script to run serviceson if on mains..
Are there boot options to not start services?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Are there boot options to not start services?
Last edited by LockBot on Mon Jul 31, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.