Mercurial Hosting > hghosting
comparison stop.sh @ 0:dfc36e7ed22c
init
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Thu, 12 May 2022 13:51:59 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:dfc36e7ed22c |
---|---|
1 #!/bin/bash | |
2 | |
3 . common.sh; | |
4 | |
5 sudo /usr/local/bin/nginx -s stop; | |
6 | |
7 if [ -f ${hgservepid} ]; then | |
8 kill -2 `cat ${hgservepid}`; | |
9 rm ${hgservepid}; | |
10 fi; | |
11 | |
12 LUAN_PIDS=$(ps ax | awk '{if($0~"[s]erve.luan"){print $1}}'); | |
13 kill -TERM $LUAN_PIDS; | |
14 exit 0; |