Update task_manager_index.py

This commit is contained in:
Mr Chen 2024-06-04 22:26:13 +08:00
parent 6160819920
commit 660d95616d
1 changed files with 1 additions and 1 deletions

View File

@ -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托管的服务不能设置非当前运行级别的状态')