Mercurial Hosting > hghosting
view stop.sh @ 18:64eee582fec1
add move logs while restart
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Wed, 19 Jun 2024 11:45:10 +0300 |
parents | dfc36e7ed22c |
children |
line wrap: on
line source
#!/bin/bash . common.sh; sudo /usr/local/bin/nginx -s stop; if [ -f ${hgservepid} ]; then kill -2 `cat ${hgservepid}`; rm ${hgservepid}; fi; LUAN_PIDS=$(ps ax | awk '{if($0~"[s]erve.luan"){print $1}}'); kill -TERM $LUAN_PIDS; exit 0;