summaryrefslogtreecommitdiffstats
path: root/valkey-sentinel.service
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-08-01 07:54:15 +0200
committerRemi Collet <remi@php.net>2025-08-01 07:54:15 +0200
commit3e97c942aeed3cb45fb8cda3d294c8927cd29f98 (patch)
treefa7c5134b4a0a1b7c03a00b72ab77a0f7d61b58c /valkey-sentinel.service
import from Fedora
Diffstat (limited to 'valkey-sentinel.service')
-rw-r--r--valkey-sentinel.service34
1 files changed, 34 insertions, 0 deletions
diff --git a/valkey-sentinel.service b/valkey-sentinel.service
new file mode 100644
index 0000000..36093e0
--- /dev/null
+++ b/valkey-sentinel.service
@@ -0,0 +1,34 @@
+[Unit]
+Description=Valkey Sentinel
+After=network.target
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+# ensure var is set
+Environment=OPTIONS=
+EnvironmentFile=-/etc/sysconfig/valkey-sentinel
+# we must keep $OPTIONS and the env file as some older installs will still be using /etc/sysconfig/valkey-sentinel
+ExecStart=/usr/bin/valkey-sentinel /etc/valkey/sentinel.conf --daemonize no --supervised systemd $OPTIONS
+Type=notify
+User=valkey
+Group=valkey
+RuntimeDirectory=valkey
+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
+