25 lines
482 B
SYSTEMD
25 lines
482 B
SYSTEMD
|
[Unit]
|
||
|
Description=Redis data structure server
|
||
|
Documentation=https://redis.io/documentation
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=notify
|
||
|
User=redis
|
||
|
Group=redis
|
||
|
ExecStart=/usr/bin/redis-server --supervised systemd --daemonize no
|
||
|
TimeoutStartSec=5
|
||
|
TimeoutStopSec=5
|
||
|
CapabilityBoundingSet=
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
NoNewPrivileges=true
|
||
|
RuntimeDirectory=redis
|
||
|
RuntimeDirectoryMode=755
|
||
|
LimitNOFILE=10032
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|