I need to run a
start-stop-daemon for a redis instance and I want it to send a
SIGTERM and if the redis instance doesn't quit i would like it to force a quit.
start-stop-daemon configuration says that the
--retry option can be used for that but i couldn't figure a way to do this, here's my current command:
/sbin/start-stop-daemon --stop --retry forever/TERM --quiet --oknodo --pidfile /var/run/redis/redis.pid --exec /usr/bin/redis-server
Any hints on how I would be able to do this?