systemd_service/examples/redis.service

17 lines
311 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=Redis Server
Documentation=https://redis.io
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=forking
2024-06-14 22:12:00 +08:00
Group=root
User=root
ExecStart=/opt/redis/bin/redis-server /opt/redis/redis.conf
Restart=always
2024-06-14 22:12:00 +08:00
PrivateTmp=true
[Install]
WantedBy=multi-user.target