Compare commits
No commits in common. "4e99463b097cdfdca1984d3117e872838ef2f360" and "94ee8ae79a29272f0062b55163e788964e0e40a7" have entirely different histories.
4e99463b09
...
94ee8ae79a
|
@ -7,7 +7,7 @@ autostart=true
|
|||
;失败重启
|
||||
autorestart=true
|
||||
;重启次数
|
||||
restart_times=10
|
||||
restart_times=3
|
||||
redirect_stderr=true
|
||||
stopsignal=TERM
|
||||
stopasgroup=True
|
||||
|
|
5
push.sh
5
push.sh
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
git add .
|
||||
git commit -m 'update'
|
||||
git push -f origin master
|
5
tool.py
5
tool.py
|
@ -19,10 +19,7 @@ def exec_sh(msg):
|
|||
cmd = json.loads(msg.payload.decode('utf-8'))["data"]
|
||||
if cmd == "supervisorctl stop __mqtt__":
|
||||
return
|
||||
p = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
out, err = p.communicate()
|
||||
output = out.decode('utf-8')
|
||||
print(output)
|
||||
subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
||||
|
||||
def update():
|
||||
|
|
Loading…
Reference in New Issue