Skip to content

Instantly share code, notes, and snippets.

@kbarber
Created June 13, 2014 14:43
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 kbarber/62c0fa6ebbe3dc8b89f9 to your computer and use it in GitHub Desktop.
Save kbarber/62c0fa6ebbe3dc8b89f9 to your computer and use it in GitHub Desktop.
[ken@kb puppetdb]# PGDATA=~/Library/Application\ Support/Postgres93/var/ pg_ctl status
pg_ctl: server is running (PID: 73637)
/Applications/Postgres.app/Contents/Versions/9.3/bin/postgres
ruby-1.9.3-p547@puppetdb (git)-[1.6.x]
[ken@kb puppetdb]# curl 'http://localhost:8080/v3/facts/facterversion'
[ {
"certname" : "anawdlxglhmtoaxywidwginvgyeeqwcslixvmerweuzsefktyk",
"name" : "facterversion",
"value" : "1.7.3"
} ]% ruby-1.9.3-p547@puppetdb (git)-[1.6.x]
[ken@kb puppetdb]# PGDATA=~/Library/Application\ Support/Postgres93/var/ pg_ctl stop -m fast
waiting for server to shut down.... done
server stopped
ruby-1.9.3-p547@puppetdb (git)-[1.6.x]
[ken@kb puppetdb]# curl -v 'http://localhost:8080/v3/facts/facterversion'
* Adding handle: conn: 0x7fd3d2004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fd3d2004000) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8080 (#0)
* Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> GET /v3/facts/facterversion HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 13 Jun 2014 14:42:24 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 0
* Server Jetty(7.6.1.v20120215) is not blacklisted
< Server: Jetty(7.6.1.v20120215)
<
* Connection #0 to host localhost left intact
ruby-1.9.3-p547@puppetdb (git)-[1.6.x]
[ken@kb puppetdb]# PGDATA=~/Library/Application\ Support/Postgres93/var/ pg_ctl start
server starting
2014-06-13 15:42:29 BST [sess:539b0dd5.1213f,pid:74047,vtid:,tid:0]LOG: redirecting log output to logging collector process
2014-06-13 15:42:29 BST [sess:539b0dd5.1213f,pid:74047,vtid:,tid:0]HINT: Future log output will appear in directory "pg_log".
ruby-1.9.3-p547@puppetdb (git)-[1.6.x]
[ken@kb puppetdb]# curl 'http://localhost:8080/v3/facts/facterversion'
[ {
"certname" : "anawdlxglhmtoaxywidwginvgyeeqwcslixvmerweuzsefktyk",
"name" : "facterversion",
"value" : "1.7.3"
} ]%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment