Update index.py
This commit is contained in:
parent
e176ac2e8d
commit
c9eea53ff5
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue