summaryrefslogtreecommitdiff
path: root/valkey-sentinel.service
diff options
context:
space:
mode:
Diffstat (limited to 'valkey-sentinel.service')
-rw-r--r--valkey-sentinel.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/valkey-sentinel.service b/valkey-sentinel.service
new file mode 100644
index 0000000..e9e6caa
--- /dev/null
+++ b/valkey-sentinel.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=Valkey Sentinel
+After=network.target
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+EnvironmentFile=-/etc/sysconfig/valkey-sentinel
+# moved $OPTIONS to start because the --dir option only overrides the config if it is passed before
+# the config to the binary. I think this is a bug and will be reporting it upstream as all other
+# opts don't care about the order for the override to work
+ExecStart=/usr/bin/valkey-sentinel /etc/valkey/sentinel.conf --daemonize no --supervised systemd $OPTIONS
+Type=notify
+User=valkey
+Group=valkey
+RuntimeDirectory=valkey
+RuntimeDirectoryMode=0755
+
+[Install]
+WantedBy=multi-user.target
+