The stuff in contrib/start-scripts/osx/ does not, as far as I know,
work at all on any recent release of macOS, because SystemStarter
is long gone. I propose replacing it with the attached, which
I've tested on current-vintage Macs.
If anyone's interested in reviewing this, I'll stick it into the
next commitfest.
regards, tom lane