|
|
|
@ -279,6 +279,12 @@ def initdStatus(): |
|
|
|
|
data = mw.execShell(shell_cmd) |
|
|
|
|
if data[0] == '': |
|
|
|
|
return 'fail' |
|
|
|
|
|
|
|
|
|
shell_cmd = 'systemctl status lsyncd | grep loaded | grep "enabled;"' |
|
|
|
|
data = mw.execShell(shell_cmd) |
|
|
|
|
if data[0] == '': |
|
|
|
|
return 'fail' |
|
|
|
|
|
|
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -286,6 +292,7 @@ def initdInstall(): |
|
|
|
|
if mw.isAppleSystem(): |
|
|
|
|
return "Apple Computer does not support" |
|
|
|
|
|
|
|
|
|
mw.execShell('systemctl enable lsyncd') |
|
|
|
|
mw.execShell('systemctl enable rsyncd') |
|
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
@ -295,6 +302,7 @@ def initdUinstall(): |
|
|
|
|
if mw.isAppleSystem(): |
|
|
|
|
return "Apple Computer does not support" |
|
|
|
|
|
|
|
|
|
mw.execShell('systemctl diable lsyncd') |
|
|
|
|
mw.execShell('systemctl diable rsyncd') |
|
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
|