-
-
Save tctony/9cdd5848390daf5a6519aed303343de3 to your computer and use it in GitHub Desktop.
redis systemd unit file
This file contains hidden or 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 Data Store | |
| After=network.target | |
| [Service] | |
| User=redis | |
| Group=redis | |
| LimitCORE=infinity | |
| LimitNOFILE=100000 | |
| LimitNPROC=100000 | |
| ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf | |
| ExecStop=/usr/local/bin/redis-cli shutdown | |
| ExecReload=/usr/local/bin/redis-cli shutdown && /usr/local/bin/redis-server /etc/redis/redis.conf | |
| Restart=always | |
| RestartSec=3 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment