Skip to content

Instantly share code, notes, and snippets.

@cpegel
Created February 17, 2016 13:56
Show Gist options
  • Save cpegel/f87595d82a244a9baf5f to your computer and use it in GitHub Desktop.
Save cpegel/f87595d82a244a9baf5f to your computer and use it in GitHub Desktop.
[Unit]
Description=Advanced key-value store
After=network.target
[Service]
Type=simple
User=redis
Group=redis
ExecStart=/usr/bin/redis-server /etc/redis.conf
ExecStop=/usr/bin/redis-cli shutdown
CapabilityBoundingSet=
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
RuntimeDirectory=redis
RuntimeDirectoryMode=755
LimitNOFILE=10032
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment