servicectl
servicectl copied to clipboard
Get service names dynamically
Since different linux distributions use different service names (eg apache can be found as apache, apache2 or httpd), you could prompt the system on first run, get the correct service names, and write them in config.py.
You could also make the program more generic and get all system services (maybe with systemctl list-units-files?)
At current time, is targeted to, desired services will specify by the user in config.py. But in the future, I plan to use the list-units-files and a list with checkboxes for selection.
I understand. Thank you for the quick reply.