Skip to content

Instantly share code, notes, and snippets.

@mzpqnxow
Forked from yspb/redis.service
Created August 22, 2021 15:26
Show Gist options
  • Save mzpqnxow/8afa5f8fc673dcf1fdab5d8450cb118c to your computer and use it in GitHub Desktop.
Save mzpqnxow/8afa5f8fc673dcf1fdab5d8450cb118c to your computer and use it in GitHub Desktop.
[Unit]
Description=Redis In-Memory Data Store
After=network.target
[Service]
User=redis
Group=redis
ExecStart=/usr/local/bin/redis-server /db/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always
LimitNOFILE=65536
TimeoutSec=10
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment