Skip to content

Instantly share code, notes, and snippets.

@itwysgsl
Forked from hackedunit/redis.service
Created August 9, 2018 18:28
Show Gist options
  • Save itwysgsl/f7585c35145ab24cfb2428a6bdea0a6b to your computer and use it in GitHub Desktop.
Save itwysgsl/f7585c35145ab24cfb2428a6bdea0a6b 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