Start redis after network is online (#7639)

The two lines allow systemd to start redis.service after the network is online. Only after the network is online that Redis could bind to IP address other than 127.0.0.1 during initial boot up process.

(cherry picked from commit 8e937ce4cc)
This commit is contained in:
YoongHM authored and Oran Agra committed 2020-09-01 09:27:58 +03:00
1 parent 0314429c8f
commit 171f83306e
1 file changed
+2
+2
View File
@@ -20,6 +20,8 @@ Description=Redis data structure server
Documentation=https://redis.io/documentation
#Before=your_application.service another_example_application.service
#AssertPathExists=/var/lib/redis
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/local/bin/redis-server --supervised systemd --daemonize no