2015-04-01 18:53:07 +02:00
|
|
|
[Unit]
|
2020-02-08 22:38:07 +01:00
|
|
|
Description=Redis instance: %i
|
2015-04-01 18:53:07 +02:00
|
|
|
After=network.target
|
|
|
|
PartOf=redis.target
|
|
|
|
|
|
|
|
[Service]
|
2018-11-26 17:50:24 +01:00
|
|
|
Type=notify
|
2015-04-01 18:53:07 +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
|
2021-03-18 15:23:57 +01:00
|
|
|
PIDFile=/run/redis/%i.pid
|
2015-04-01 18:53:07 +02:00
|
|
|
ExecStart=/usr/sbin/redis-server /etc/redis/%i.conf
|
2018-09-06 21:15:00 +02:00
|
|
|
LimitNOFILE=10240
|
2015-04-01 18:53:07 +02:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target redis.target
|