update
This commit is contained in:
parent
d4b2a1214e
commit
6563bb0044
|
|
@ -249,7 +249,6 @@ def start():
|
|||
return data['msg']
|
||||
|
||||
data = public.execShell(__SR + file + ' start')
|
||||
print data
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
return data[0]
|
||||
|
|
|
|||
|
|
@ -75,9 +75,8 @@ stop() {
|
|||
|
||||
pids=`ps -ef|grep 'gogs web' |grep -v grep|awk '{print $2}'`
|
||||
arr=($pids)
|
||||
echo -e "Stopping gogs... \c";
|
||||
|
||||
ifor p in ${arr[@]}
|
||||
echo -e "Stopping gogs... \c"
|
||||
for p in ${arr[@]}
|
||||
do
|
||||
kill -9 $p
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue