summaryrefslogtreecommitdiffstats
path: root/redis.service
diff options
context:
space:
mode:
Diffstat (limited to 'redis.service')
-rw-r--r--redis.service14
1 files changed, 13 insertions, 1 deletions
diff --git a/redis.service b/redis.service
index 4e59720..093cfd4 100644
--- a/redis.service
+++ b/redis.service
@@ -6,13 +6,25 @@ Wants=network-online.target
[Service]
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf --daemonize no --supervised systemd
-ExecStop=/usr/libexec/redis-shutdown
Type=notify
User=redis
Group=redis
RuntimeDirectory=redis
RuntimeDirectoryMode=0755
+# If you need to change max open file limit
+# for example, when you change maxclient in configuration
+# you can change the LimitNOFILE value below.
+# See "man systemd.exec" for more information.
+LimitNOFILE=10240
+
+# Slave nodes on large system may take lot of time to start.
+# You may need to uncomment TimeoutStartSec and TimeoutStopSec
+# directives below and raise their value.
+# See "man systemd.service" for more information.
+#TimeoutStartSec=90s
+#TimeoutStopSec=90s
+
[Install]
WantedBy=multi-user.target