Skip to content

Instantly share code, notes, and snippets.

@robbielamb
Created October 27, 2010 19:20
Embed
What would you like to do?
#!/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