Skip to content

Instantly share code, notes, and snippets.

@rajiv2205
rajiv2205 / redis-master.service
Created April 8, 2020 12:24
service file redis master
[Unit]
Description=Redis in memory key-value database master
After=network.target
[Service]
Environment=LD_PRELOAD=/usr/lib/libkeepalive.so
Environment=KEEPCNT=20
Environment=KEEPIDLE=180
Environment=KEEPINTVL=60
ExecStart=/usr/bin/redis-server /etc/redis.conf - supervised systemd
ExecStop=/usr/libexec/redis-shutdown