From 4a34feefb0925558ad02a6cd92bcd2e8eb795718 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 12 Sep 2024 21:04:53 -0700 Subject: [PATCH] action_utils: Update outdated docstrings - We no longer support sysvinit. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/action_utils.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plinth/action_utils.py b/plinth/action_utils.py index 83c4a4425..a823f8e3b 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -86,13 +86,13 @@ def service_is_enabled(service_name, strict_check=False): def service_enable(service_name): - """Enable and start a service in systemd and sysvinit using update-rc.d.""" + """Enable and start a service in systemd.""" subprocess.call(['systemctl', 'enable', service_name]) service_start(service_name) def service_disable(service_name): - """Disable and stop service in systemd and sysvinit using update-rc.d.""" + """Disable and stop service in systemd.""" subprocess.call(['systemctl', 'disable', service_name]) try: service_stop(service_name) @@ -111,27 +111,27 @@ def service_unmask(service_name): def service_start(service_name): - """Start a service with systemd or sysvinit.""" + """Start a service with systemd.""" service_action(service_name, 'start') def service_stop(service_name): - """Stop a service with systemd or sysvinit.""" + """Stop a service with systemd.""" service_action(service_name, 'stop') def service_restart(service_name): - """Restart a service with systemd or sysvinit.""" + """Restart a service with systemd.""" service_action(service_name, 'restart') def service_try_restart(service_name): - """Try to restart a service with systemd or sysvinit.""" + """Try to restart a service with systemd.""" service_action(service_name, 'try-restart') def service_reload(service_name): - """Reload a service with systemd or sysvinit.""" + """Reload a service with systemd.""" service_action(service_name, 'reload')