Skip to content

Instantly share code, notes, and snippets.

@zeerayne
Forked from hackedunit/redis.service
Last active September 25, 2020 06:06
Show Gist options
  • Select an option

  • Save zeerayne/cdce87b8f8bf4d22fa9d17872553e75a to your computer and use it in GitHub Desktop.

Select an option

Save zeerayne/cdce87b8f8bf4d22fa9d17872553e75a to your computer and use it in GitHub Desktop.
[Unit]
Description=Redis In-Memory Data Store
After=network.target
[Service]
Type=notify
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