Skip to content

Commit

Permalink
Fix ignoring SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
SemperPeritus committed Apr 16, 2023
1 parent 18850e6 commit 68f4947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/start-redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 68f4947

Please sign in to comment.