Created
April 8, 2020 12:24
-
-
Save rajiv2205/0452db02191a249e7b748d5d0da45bbd to your computer and use it in GitHub Desktop.
service file redis master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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