Created
June 15, 2016 08:00
-
-
Save strawberryjello/51ffe69ef52342b5a2e1cd740e993a2b to your computer and use it in GitHub Desktop.
Cleaning up PostgreSQL PID file and restarting the server after it crashes because of OS X updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
rm /usr/local/var/postgres/postmaster.pid | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment