summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorYoongHM <yoonghm@users.noreply.github.com>2020-08-11 17:30:32 +0800
committerGitHub <noreply@github.com>2020-08-11 12:30:32 +0300
commit8e937ce4cc1462d996bae6a45e8c0a66f71e7ee6 (patch)
tree00c82cf33360537f5828b62b3ae5bc95a97fba83 /utils
parent6f11acbd67f65c5f3fd84223bf07fefd75cfdc37 (diff)
downloadredis-8e937ce4cc1462d996bae6a45e8c0a66f71e7ee6.tar.gz
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.
Diffstat (limited to 'utils')
-rw-r--r--utils/systemd-redis_server.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/systemd-redis_server.service b/utils/systemd-redis_server.service
index addee3498..cf158644a 100644
--- a/utils/systemd-redis_server.service
+++ b/utils/systemd-redis_server.service
@@ -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