ops: Kill nginx cache heater script on shutdown

This commit is contained in:
wiz 2024-02-25 16:47:40 +09:00
parent 7e16c5e8c4
commit 587c7f6d59
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -20,5 +20,10 @@ for pid in `ps uaxww|grep warmer|grep zsh|awk '{print $2}'`;do
kill $pid
done
# kill nginx cache heater scripts
for pid in `ps uaxww|grep heater|grep zsh|awk '{print $2}'`;do
kill $pid
done
# always exit successfully despite above errors
exit 0