更新redis.service
This commit is contained in:
parent
a229064947
commit
1ffa3da357
@ -7,8 +7,8 @@ Wants=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/opt/redis/bin/redis-server /opt/redis/redis.conf
|
ExecStart=/opt/redis/bin/redis-server /opt/redis/redis.conf
|
||||||
ExecReload=/opt/redis/bin/redis-server -s reload
|
ExecReload=kill -9 $(ps aux | grep /opt/redis/bin/redis-server | grep -v grep | awk '{print $2}' | tr -d ' ') & /opt/redis/bin/redis-server /opt/redis/redis.conf
|
||||||
ExecStop=/opt/redis/bin/redis-server -s stop
|
ExecStop=kill -9 $(ps aux | grep /opt/redis/bin/redis-server | grep -v grep | awk '{print $2}' | tr -d ' ')
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user