summaryrefslogtreecommitdiff
path: root/community/redis/redis.service
blob: 7596b4bda32acfc014b1dd528a333c88eb85e81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Advanced key-value store
After=network.target

[Service]
Type=forking
PIDFile=/run/redis.pid
ExecStartPre=/bin/mkdir -p /var/lib/redis
ExecStart=/usr/bin/redis-server /etc/redis.conf
ExecStop=/usr/bin/redis-cli shutdown
Restart=always

[Install]
WantedBy=multi-user.target