Skip to content

Instantly share code, notes, and snippets.

@strawberryjello
Created June 15, 2016 08:00
Show Gist options
  • Save strawberryjello/51ffe69ef52342b5a2e1cd740e993a2b to your computer and use it in GitHub Desktop.
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
#! /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