Reworked the order of operations: postgres was being started too late, causing an Oozie configuration error.