{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1875","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1875/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1875/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1875/events","html_url":"https://github.com/travis-ci/travis-ci/issues/1875","id":26039404,"number":1875,"title":"PostgreSQL on the OS X VM is not started","user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/feature-request","name":"feature-request","color":"009800"},{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/mac","name":"mac","color":"d4c5f9"},{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/objective-c","name":"objective-c","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"henrikhodne","id":24421,"avatar_url":"https://avatars.githubusercontent.com/u/24421?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikhodne","html_url":"https://github.com/henrikhodne","followers_url":"https://api.github.com/users/henrikhodne/followers","following_url":"https://api.github.com/users/henrikhodne/following{/other_user}","gists_url":"https://api.github.com/users/henrikhodne/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikhodne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikhodne/subscriptions","organizations_url":"https://api.github.com/users/henrikhodne/orgs","repos_url":"https://api.github.com/users/henrikhodne/repos","events_url":"https://api.github.com/users/henrikhodne/events{/privacy}","received_events_url":"https://api.github.com/users/henrikhodne/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2014-01-21T19:48:40Z","updated_at":"2015-06-20T19:06:28Z","closed_at":null,"body":"On a Mac VM, PostgreSQL should be started with `launchd` or some other means. Currently, we are using `service` command, which does not work."},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/113804961","html_url":"https://github.com/travis-ci/travis-ci/issues/1875#issuecomment-113804961","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/1875","id":113804961,"user":{"login":"kennethgunn","id":199818,"avatar_url":"https://avatars.githubusercontent.com/u/199818?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethgunn","html_url":"https://github.com/kennethgunn","followers_url":"https://api.github.com/users/kennethgunn/followers","following_url":"https://api.github.com/users/kennethgunn/following{/other_user}","gists_url":"https://api.github.com/users/kennethgunn/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethgunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethgunn/subscriptions","organizations_url":"https://api.github.com/users/kennethgunn/orgs","repos_url":"https://api.github.com/users/kennethgunn/repos","events_url":"https://api.github.com/users/kennethgunn/events{/privacy}","received_events_url":"https://api.github.com/users/kennethgunn/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T19:06:28Z","updated_at":"2015-06-20T19:06:28Z","body":"As @colszowka mentioned, the build log still contains\r\n\r\n```\r\nStart PostgreSQL v9.3\r\n$ sudo service postgresql stop\r\nsudo: service: command not found\r\n$ sudo service postgresql start 9.3\r\nsudo: service: command not found\r\n```\r\n\r\nCan that be updated to use pg_ctl? The before_install technique from @andrusha's comment works."}}