Skip to content

Instantly share code, notes, and snippets.

@kwoktung
Forked from hackedunit/redis.service
Created November 28, 2019 04:33
Show Gist options
  • Save kwoktung/a076fdae83f402a6e836e8772f3cb2fb to your computer and use it in GitHub Desktop.
Save kwoktung/a076fdae83f402a6e836e8772f3cb2fb 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 /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment