2018-09-06 21:15:00 +02:00
|
|
|
[Unit]
|
2020-02-08 22:38:07 +01:00
|
|
|
Description=Redis Sentinel instance: %i
|
2018-09-06 21:15:00 +02:00
|
|
|
After=network.target
|
|
|
|
PartOf=redis-sentinel.target
|
|
|
|
|
|
|
|
[Service]
|
2021-03-08 13:06:24 +01:00
|
|
|
Type=notify
|
2018-09-06 21:15:00 +02:00
|
|
|
User=redis
|
|
|
|
Group=redis
|
|
|
|
PrivateTmp=true
|
2021-11-22 11:20:26 +01:00
|
|
|
# added automatically, for details please see
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=true
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectHostname=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
# end of automatic additions
|
2022-05-11 08:36:28 +02:00
|
|
|
ReadWritePaths=/etc/redis
|
2021-03-18 15:23:57 +01:00
|
|
|
PIDFile=/run/redis/sentinel-%i.pid
|
2018-09-06 21:15:00 +02:00
|
|
|
ExecStart=/usr/sbin/redis-sentinel /etc/redis/sentinel-%i.conf
|
|
|
|
LimitNOFILE=10240
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target redis.target
|