I didn't know the exact difference between network and network-online targets.
Alexis.
On 06/09/2017 12:09 AM, Jeandet Alexis wrote:
On startup postgreslq always fail to start complaining about port 5432.
My first guess would be that you've configured postgresql to listen on a
specific IP address, and when you do that, the service needs to depend
on "network-online.target" instead of "network.target."
Run "systemctl edit postgresql.service" and insert two lines:
[Unit]
After=network-online.target
_______________________________________________