mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
fix output of kill socat, increase waiting time for sigterm
This commit is contained in:
parent
4707d632d6
commit
3d90648998
|
@ -26,11 +26,9 @@ function start_socat {
|
|||
|
||||
function stop_socat {
|
||||
echo "Stopping socat..."
|
||||
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -15 > /dev/null
|
||||
sleep 2
|
||||
if [ -z $(ps aux | grep '[s]ocat')]; then
|
||||
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -9 > /dev/null
|
||||
fi
|
||||
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -15 |& tee /dev/null
|
||||
sleep 5
|
||||
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -9 |& tee /dev/null
|
||||
}
|
||||
|
||||
function keep_running {
|
||||
|
|
Loading…
Reference in a new issue