servicectl icon indicating copy to clipboard operation
servicectl copied to clipboard

Get service names dynamically

Open karate opened this issue 9 years ago • 2 comments

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?)

karate avatar May 18 '16 12:05 karate

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.

YokiToki avatar May 18 '16 12:05 YokiToki

I understand. Thank you for the quick reply.

karate avatar May 18 '16 12:05 karate