PostgreSQL database automatic launch on OSX 10.6 Snow Leopard


It took a while to find this, but here’s my solution

Add this file: /Library/LaunchDaemons/org.postgres.launchd.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
<plist version="1.0">
    <!-- Following the launchd man page enumeration of keys -->

You can then load it and unload it by issuing:

Now get to making some great Rails stuff!