From 660d95616d2c75fd34dae64ebf9c1904303cd479 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 4 Jun 2024 22:26:13 +0800 Subject: [PATCH] Update task_manager_index.py --- plugins/task_manager/task_manager_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/task_manager/task_manager_index.py b/plugins/task_manager/task_manager_index.py index 62a34ff09..b44e4b908 100755 --- a/plugins/task_manager/task_manager_index.py +++ b/plugins/task_manager/task_manager_index.py @@ -1260,7 +1260,7 @@ class mainClass(object): systemctl_user_path = '/usr/lib/systemd/system/' systemctl_run_path = '/etc/systemd/system/multi-user.target.wants/' - if os.path.exists(systemctl_user_path + get.serviceName + '.service'): + if os.path.exists(systemctl_user_path + serviceName + '.service'): runlevel = mw.execShell('runlevel')[0].split()[1] if get.runlevel != runlevel: return mw.returnData(False,'Systemctl托管的服务不能设置非当前运行级别的状态')