2024-04-26 10:54:01 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Valkey Sentinel
|
|
|
|
After=network.target
|
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2024-08-06 08:37:49 +00:00
|
|
|
# ensure var is set
|
|
|
|
Environment=OPTIONS=
|
2024-04-26 10:54:01 +00:00
|
|
|
EnvironmentFile=-/etc/sysconfig/valkey-sentinel
|
2024-08-06 08:37:49 +00:00
|
|
|
# we must keep $OPTIONS and the env file as some older installs will still be using /etc/sysconfig/valkey-sentinel
|
2024-04-26 10:54:01 +00:00
|
|
|
ExecStart=/usr/bin/valkey-sentinel /etc/valkey/sentinel.conf --daemonize no --supervised systemd $OPTIONS
|
|
|
|
Type=notify
|
|
|
|
User=valkey
|
|
|
|
Group=valkey
|
|
|
|
RuntimeDirectory=valkey
|
|
|
|
RuntimeDirectoryMode=0755
|
|
|
|
|
2024-08-06 08:37:49 +00:00
|
|
|
# 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
|
|
|
|
|
2024-04-26 10:54:01 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|