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

[Service]
Type=forking
User=redis
PIDFile=/run/redis/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