Update index.py

This commit is contained in:
Mr Chen 2019-03-01 17:50:10 +08:00
parent e176ac2e8d
commit c9eea53ff5
1 changed files with 2 additions and 2 deletions

View File

@ -65,14 +65,14 @@ def status():
def start():
data = public.execShell(file + ' start')
data = public.execShell('service xl2tpd start')
if data[1] == '':
return 'ok'
return data[1]
def stop():
data = public.execShell(file + ' stop')
data = public.execShell('service xl2tpd stop')
if data[1] == '':
return 'ok'
return data[1]