19 lines
393 B
SYSTEMD
19 lines
393 B
SYSTEMD
|
[Unit]
|
||
|
Description=Redis persistent key-value database
|
||
|
After=network.target
|
||
|
After=network-online.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf --daemonize no --supervised systemd
|
||
|
ExecStop=/usr/libexec/redis-shutdown
|
||
|
Type=notify
|
||
|
User=redis
|
||
|
Group=redis
|
||
|
RuntimeDirectory=redis
|
||
|
RuntimeDirectoryMode=0755
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|