view stop.sh @ 7:46f6b69e8b10

better handling of missing mail_info
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 03 Jun 2022 09:57:45 -0600
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;