Skip to content

Commit

Permalink
Start redis after network is online (redis#7639)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yoonghm authored Aug 11, 2020
1 parent 6f11acb commit 8e937ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/systemd-redis_server.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e937ce

Please sign in to comment.