mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
Update index.py
This commit is contained in:
@@ -510,9 +510,13 @@ def cmdRecCmd():
|
||||
|
||||
# ----------------------------- rsyncdSend start -------------------------
|
||||
|
||||
|
||||
def lsyncdReload():
|
||||
mw.execShell('systemctl restart lsyncd')
|
||||
data = mw.execShell(
|
||||
"ps -ef|grep lsyncd |grep -v grep | grep -v python | awk '{print $2}'")
|
||||
if data[0] == '':
|
||||
mw.execShell('systemctl start lsyncd')
|
||||
else:
|
||||
mw.execShell('systemctl restart lsyncd')
|
||||
|
||||
|
||||
def makeLsyncdConf(data):
|
||||
|
||||
Reference in New Issue
Block a user