Skip to content

Instantly share code, notes, and snippets.

@micheleberardi
Created September 14, 2022 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micheleberardi/a7e75777b80571e6ef185cdb427b2bdb to your computer and use it in GitHub Desktop.
Save micheleberardi/a7e75777b80571e6ef185cdb427b2bdb to your computer and use it in GitHub Desktop.
redis_6379.service
[Unit]
Description=Redis persistent key-value database
After=network.target
[Service]
ExecStart=/usr/local/bin/redis-server /etc/redis/6379.conf --daemonize no --supervised systemd
ExecStop=/usr/libexec/redis-shutdown
#Type=notify
User=redis
Group=redis
RuntimeDirectory=redis
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment