summarylogtreecommitdiffstats
path: root/redis.service
diff options
context:
space:
mode:
authorLeo P2016-04-05 01:13:58 -0400
committerLeo P2016-04-05 01:13:58 -0400
commitf1a6118a225268149a82fde1c64abdf23899f580 (patch)
tree18d245fc24aadef0b746c11a0820b2d7b00dcc89 /redis.service
downloadaur-redis-testing.tar.gz
first
Diffstat (limited to 'redis.service')
-rw-r--r--redis.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/redis.service b/redis.service
new file mode 100644
index 000000000000..0a8162b8ab8e
--- /dev/null
+++ b/redis.service
@@ -0,0 +1,22 @@
+[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