systemd_service/examples/redis.service

16 lines
368 B
SYSTEMD
Raw Normal View History

[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