mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user