mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -16,36 +16,39 @@ def status():
|
|||||||
|
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
public.execShell('sysctl -p')
|
public.execShell('sysctl -p')
|
||||||
return 'ok'
|
return 'ok'
|
||||||
|
|
||||||
|
|
||||||
def stop():
|
def stop():
|
||||||
public.execShell('sysctl -p')
|
public.execShell('sysctl -p')
|
||||||
return 'ok'
|
return 'ok'
|
||||||
|
|
||||||
|
|
||||||
def restart():
|
def restart():
|
||||||
public.execShell('sysctl -p')
|
public.execShell('sysctl -p')
|
||||||
return 'ok'
|
return 'ok'
|
||||||
|
|
||||||
|
|
||||||
def reload():
|
def reload():
|
||||||
public.execShell('sysctl -p')
|
public.execShell('sysctl -p')
|
||||||
return 'ok'
|
return 'ok'
|
||||||
|
|
||||||
|
|
||||||
def sysConf():
|
def sysConf():
|
||||||
return '/etc/sysctl.conf'
|
return '/etc/sysctl.conf'
|
||||||
|
|
||||||
|
|
||||||
def secRunLog():
|
def secRunLog():
|
||||||
return '/var/log/secure'
|
return '/var/log/secure'
|
||||||
|
|
||||||
|
|
||||||
def msgRunLog():
|
def msgRunLog():
|
||||||
return '/var/log/message'
|
return '/var/log/message'
|
||||||
|
|
||||||
|
|
||||||
def cronRunLog():
|
def cronRunLog():
|
||||||
return '/var/log/cron'
|
return '/var/log/cron'
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
func = sys.argv[1]
|
func = sys.argv[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user