desktop/redis/redis.service

16 lines
309 B
SYSTEMD
Raw Normal View History

2012-11-04 00:31:00 +08:00
[Unit]
Description=Advanced key-value store
After=network.target
[Service]
Type=forking
2013-10-16 13:19:32 +08:00
User=redis
PIDFile=/run/redis/redis.pid
2012-11-04 00:31:00 +08:00
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