summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-04-27 17:06:16 +0000
committerJames Thomas <james.thomas@codethink.co.uk>2015-04-28 12:03:18 +0000
commitaaadb3f2a8d74f6cb6401b7dc4f7d095bf0497fe (patch)
tree3e0f70e9304c8984e67e9a8d87767eb515421eb9
parent7e86b6d2f44d2dc75d9d477c384a74c079083c2e (diff)
downloaddefinitions-aaadb3f2a8d74f6cb6401b7dc4f7d095bf0497fe.tar.gz
postgresql: Make the service depend on network-online.target
When the server is configured to listen connections only from some IP addresses, the unit fails if the network is not configured and there aren't interfaces with this IP. Change-Id: Ibc4a00f5cc8efbbd8edd2df227272b9420438c6c
-rw-r--r--openstack/usr/lib/systemd/system/postgres-server.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/usr/lib/systemd/system/postgres-server.service b/openstack/usr/lib/systemd/system/postgres-server.service
index cd559fa0..af0e9621 100644
--- a/openstack/usr/lib/systemd/system/postgres-server.service
+++ b/openstack/usr/lib/systemd/system/postgres-server.service
@@ -1,6 +1,6 @@
[Unit]
Description=PostgreSQL database server
-After=network.target
+After=network-online.target
[Service]
Type=forking