forked from pool/redis
c6a9fc2221
- Add ReadWritePaths=/etc/redis to redis-sentinel@.service (bsc#1199198) OBS-URL: https://build.opensuse.org/request/show/976028 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=191
32 lines
744 B
Desktop File
32 lines
744 B
Desktop File
[Unit]
|
|
Description=Redis Sentinel instance: %i
|
|
After=network.target
|
|
PartOf=redis-sentinel.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
User=redis
|
|
Group=redis
|
|
PrivateTmp=true
|
|
# 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
|
|
ReadWritePaths=/etc/redis
|
|
PIDFile=/run/redis/sentinel-%i.pid
|
|
ExecStart=/usr/sbin/redis-sentinel /etc/redis/sentinel-%i.conf
|
|
LimitNOFILE=10240
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target redis.target
|