2024-01-05 17:24:01 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Redis Server
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2024-01-05 17:24:01 +01:00
|
|
|
WorkingDirectory=/var/lib/redis
|
2024-01-05 17:24:01 +01:00
|
|
|
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
|