From 68f49474ad1c124e7de8041cfee2631dfd0b0ee0 Mon Sep 17 00:00:00 2001 From: Platon Efimov Date: Sun, 16 Apr 2023 14:46:20 +0700 Subject: [PATCH] Fix ignoring SIGTERM --- src/start-redis.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/start-redis.sh b/src/start-redis.sh index f301e31..b53698b 100755 --- a/src/start-redis.sh +++ b/src/start-redis.sh @@ -68,8 +68,9 @@ stop_redis() { exit 0 } -# Trap SIGINT signal and run cleanup function +# Trap SIGINT and SIGTERM signals and run cleanup function trap stop_redis SIGINT +trap stop_redis SIGTERM # Start redis redis-server /usr/local/etc/redis/redis.conf &