colibri.redis / startup.sh
reztilop's picture
Create startup.sh
6f12b44 verified
raw
history blame
299 Bytes
#!/bin/sh
# Trap les signaux pour un arrêt propre
trap "redis-cli shutdown" TERM INT
# Démarrer Redis en arrière-plan
redis-server /usr/local/etc/redis/redis.conf &
# Stocker le PID
REDIS_PID=$!
# Attendre que Redis soit arrêté
wait $REDIS_PID
# Sortir avec le même code que Redis
exit $?