Unverified Commit 8e937ce4 authored by YoongHM's avatar YoongHM Committed by GitHub
Browse files

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.
parent 6f11acbd
...@@ -20,6 +20,8 @@ Description=Redis data structure server ...@@ -20,6 +20,8 @@ Description=Redis data structure server
Documentation=https://redis.io/documentation Documentation=https://redis.io/documentation
#Before=your_application.service another_example_application.service #Before=your_application.service another_example_application.service
#AssertPathExists=/var/lib/redis #AssertPathExists=/var/lib/redis
Wants=network-online.target
After=network-online.target
[Service] [Service]
ExecStart=/usr/local/bin/redis-server --supervised systemd --daemonize no ExecStart=/usr/local/bin/redis-server --supervised systemd --daemonize no
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment