16 lines
368 B
SYSTEMD
16 lines
368 B
SYSTEMD
|
[Unit]
|
||
|
Description=Redis Server
|
||
|
Documentation=https://redis.io
|
||
|
After=network-online.target firewalld.service
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
ExecStart=/opt/redis/bin/redis-server /opt/redis/redis.conf
|
||
|
ExecReload=/opt/redis/bin/redis-server -s reload
|
||
|
ExecStop=/opt/redis/bin/redis-server -s stop
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|