summarylogtreecommitdiffstats
path: root/redis.service
blob: 4c4533e7a03e3ac8635ee55d87135a38c209ddbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=Advanced key-value store (version <version>)
After=network.target

[Service]
Type=simple
User=redis
Group=redis
ExecStart=/usr/bin/redis<version>-server /etc/redis<version>.conf
ExecStop=/usr/bin/redis<version>-cli shutdown
CapabilityBoundingSet=
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
RuntimeDirectory=redis<version>
RuntimeDirectoryMode=755
LimitNOFILE=10032

[Install]
WantedBy=multi-user.target