I installed PostgreSQL 8.4.4 in Mac OS X. I am pretty happy and I don't want to uninstall it since I do occasional development on it.

But I would definitely like to prevent OS X to run it every time the machine boots up.

What's the "Mac OS way" of doing that? In Linux I would turn off the service in some runlevels, but I don't know how to do the same in Mac OS X.

Thanks!

link|improve this question

80% accept rate
1  
To start, how did you install it? – fideli Sep 13 '10 at 19:36
feedback

1 Answer

up vote 2 down vote accepted

Mac OS X uses launchd to replace init.d.

To disable a launchd job you need to find out the name of the plist that has all the details of the job. sudo launchctl unload /PATH/TO/PLIST.

The file is most likely in /Library/LaunchDaemons but the exact name depends on how you installed it (eg. PostgreSQL's distribution, MacPorts, etc.)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.