My PostgreSQL
service must start after OpenVPN
, and when I check the order rc.X directories they are listed as S16openvpn and S19postgresql, so they are in the right order.
However connecting to a database via the VPN fails and the logs always indicate that PostgreSQL
could not bind at startup. My guess is that it takes some time for all the OpenVPN services to start and PostgreSQL
is started before the loading of the OpenVPN
networks is complete.
Is there a way for the PostgreSQL to try to reload and attempt to bind to the OpenVPN
network before before giving up?