Skip to content

Instantly share code, notes, and snippets.

@rajiv2205
Created April 8, 2020 12:24
Show Gist options
  • Save rajiv2205/0452db02191a249e7b748d5d0da45bbd to your computer and use it in GitHub Desktop.
Save rajiv2205/0452db02191a249e7b748d5d0da45bbd to your computer and use it in GitHub Desktop.
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
LimitNOFILE=500000
Type=notify
User=redis
Group=redis
RuntimeDirectory=redis
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment