forked from pool/redis
0ed7fc08bb
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/932205 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=187
31 lines
680 B
Desktop File
31 lines
680 B
Desktop File
[Unit]
|
|
Description=Redis instance: %i
|
|
After=network.target
|
|
PartOf=redis.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
|
|
PIDFile=/run/redis/%i.pid
|
|
ExecStart=/usr/sbin/redis-server /etc/redis/%i.conf
|
|
LimitNOFILE=10240
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target redis.target
|