18 lines
327 B
SYSTEMD
18 lines
327 B
SYSTEMD
|
[Unit]
|
||
|
Description=Redis
|
||
|
After=network.target
|
||
|
PartOf=redis-sentinel.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=redis
|
||
|
Group=redis
|
||
|
PrivateTmp=true
|
||
|
PIDFile=/var/run/redis/sentinel-%i.pid
|
||
|
ExecStart=/usr/sbin/redis-sentinel /etc/redis/sentinel-%i.conf
|
||
|
LimitNOFILE=10240
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target redis.target
|