Fix ordering of starting Apache and PostgreSQL

Fixing ordering of starting Apache and PostgreSQL for Debian.
(cherry picked from commit 654fc8fb230614a10b22d968458c000e25c0d723)