Skip to content

Commit 171c88b

Browse files
authored
Modules configuration, remove caps and redundant systemd directives
2 parents fd1dc18 + eba9b65 commit 171c88b

File tree

6 files changed

+460
-10
lines changed

6 files changed

+460
-10
lines changed

configs/redis-ce.fc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/etc/redis/sentinel -d system_u:object_r:redis_conf_t:s0
2+
/etc/redis/sentinel.conf -- system_u:object_r:redis_conf_t:s0

configs/redis-sentinel.service

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[Unit]
2+
Description=Advanced key-value store
3+
After=network.target
4+
Documentation=http://redis.io/documentation
5+
6+
[Service]
7+
Type=notify
8+
ExecStart=/usr/bin/redis-sentinel /etc/redis/sentinel/sentinel.conf
9+
TimeoutStopSec=0
10+
Restart=always
11+
User=redis
12+
Group=redis
13+
RuntimeDirectory=sentinel
14+
RuntimeDirectoryMode=2755
15+
16+
UMask=007
17+
PrivateTmp=yes
18+
LimitNOFILE=65535
19+
PrivateDevices=yes
20+
ProtectHome=yes
21+
ReadOnlyDirectories=/
22+
ReadWriteDirectories=-/var/lib/redis
23+
ReadWriteDirectories=-/var/log/redis
24+
ReadWriteDirectories=-/run/sentinel
25+
26+
NoNewPrivileges=true
27+
CapabilityBoundingSet=CAP_SYS_RESOURCE
28+
ProtectSystem=true
29+
ReadWriteDirectories=-/etc/redis
30+
31+
[Install]
32+
WantedBy=multi-user.target
33+
Alias=redis-sentinel.service

0 commit comments

Comments
 (0)