14 lines
236 B
SYSTEMD
14 lines
236 B
SYSTEMD
|
[Unit]
|
||
|
Description=Redis Server
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
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
|