From 16bb53ffd261182e7000984e94e9bc74a275b2a0 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 7 Dec 2019 01:06:22 +0800 Subject: [PATCH] Update index.py --- plugins/sys-opt/index.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/plugins/sys-opt/index.py b/plugins/sys-opt/index.py index ce5f82bce..ab38dbbbd 100755 --- a/plugins/sys-opt/index.py +++ b/plugins/sys-opt/index.py @@ -16,36 +16,39 @@ def status(): def start(): - public.execShell('sysctl -p') + public.execShell('sysctl -p') return 'ok' def stop(): - public.execShell('sysctl -p') + public.execShell('sysctl -p') return 'ok' def restart(): - public.execShell('sysctl -p') + public.execShell('sysctl -p') return 'ok' def reload(): - public.execShell('sysctl -p') + public.execShell('sysctl -p') return 'ok' def sysConf(): return '/etc/sysctl.conf' + def secRunLog(): - return '/var/log/secure' + return '/var/log/secure' + def msgRunLog(): - return '/var/log/message' + return '/var/log/message' + def cronRunLog(): - return '/var/log/cron' + return '/var/log/cron' if __name__ == "__main__": func = sys.argv[1]