Skip to content

Instantly share code, notes, and snippets.

@robbielamb
Created October 27, 2010 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbielamb/649749 to your computer and use it in GitHub Desktop.
Save robbielamb/649749 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo su postgres -c 'cd /opt/local/var/db/postgresql84; /opt/local/lib/postgresql84/bin/pg_ctl -D /opt/local/var/db/postgresql84/defaultdb start'
#!/bin/bash
sudo su postgres -c '/opt/local/lib/postgresql84/bin/pg_ctl -D /opt/local/var/db/postgresql84/defaultdb stop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment