redis/redis.service

15 lines
268 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Redis Server
After=network.target
[Service]
Type=simple
WorkingDirectory=/var/lib/redis
ExecStart=/usr/bin/redis-server /etc/redis.conf
ExecStop=/bin/kill -15 $MAINPID
PIDFile=/var/run/redis.pid
Restart=always
[Install]
WantedBy=multi-user.target