{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/brew/issues/4604","repository_url":"https://api.github.com/repos/Homebrew/brew","labels_url":"https://api.github.com/repos/Homebrew/brew/issues/4604/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/4604/comments","events_url":"https://api.github.com/repos/Homebrew/brew/issues/4604/events","html_url":"https://github.com/Homebrew/brew/issues/4604","id":347605785,"node_id":"MDU6SXNzdWUzNDc2MDU3ODU=","number":4604,"title":"Restarting MySQL server returns command prompt too soon","user":{"login":"forthrin","id":1167421,"node_id":"MDQ6VXNlcjExNjc0MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1167421?v=4","gravatar_id":"","url":"https://api.github.com/users/forthrin","html_url":"https://github.com/forthrin","followers_url":"https://api.github.com/users/forthrin/followers","following_url":"https://api.github.com/users/forthrin/following{/other_user}","gists_url":"https://api.github.com/users/forthrin/gists{/gist_id}","starred_url":"https://api.github.com/users/forthrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forthrin/subscriptions","organizations_url":"https://api.github.com/users/forthrin/orgs","repos_url":"https://api.github.com/users/forthrin/repos","events_url":"https://api.github.com/users/forthrin/events{/privacy}","received_events_url":"https://api.github.com/users/forthrin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-04T09:51:36Z","updated_at":"2018-08-05T12:28:19Z","closed_at":"2018-08-04T11:19:23Z","author_association":"NONE","body":"- [X] are reporting a bug others will be able to reproduce and not asking a question.\r\n- [X] ran a `brew` command and reproduced the problem with multiple formulae? \r\n- [X] ran `brew update` and can still reproduce the problem?\r\n- [X] ran `brew doctor`, fixed all issues and can still reproduce the problem?\r\n- [X] ran `brew config` and `brew doctor` and included their output with your issue?\r\n\r\nWhen doing `brew services stop mysql`, and the prompt returns, it still takes many seconds before the MySQL server actually stops.\r\n\r\nIn consequence, when doing `brew services restart mysql`, and the prompt returns, it still takes many seconds before the MySQL server actually starts.\r\n\r\nSo if you type `mysql` right after restarting, you will get \"Can not connect to MySQL server\" which makes you think something is wrong, but you just need to wait like ten seconds.\r\n\r\nIs it possible for `homebrew services` to wait until the daemon actually stops (and starts) before proceeding?\r\n\r\n```\r\n$ brew config\r\nHOMEBREW_VERSION: 1.7.1-114-g545eb91\r\nORIGIN: https://github.com/Homebrew/brew.git\r\nHEAD: 545eb91c83b7645174414c3db20f33568ed03e3e\r\nLast commit: 16 hours ago\r\nCore tap ORIGIN: https://github.com/Homebrew/homebrew-core\r\nCore tap HEAD: c13c3a431cd5e781fca1bdba95407aaf69cb1713\r\nCore tap last commit: 3 hours ago\r\nHOMEBREW_PREFIX: /usr/local\r\nHOMEBREW_DEV_CMD_RUN: 1\r\nHOMEBREW_GITHUB_API_TOKEN: set\r\nHOMEBREW_NO_AUTO_UPDATE: 1\r\nCPU: quad-core 64-bit haswell\r\nHomebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby\r\nClang: 9.0 build 900\r\nGit: 2.14.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git\r\nCurl: 7.54.0 => /usr/bin/curl\r\nJava: N/A\r\nmacOS: 10.12.6-x86_64\r\nCLT: 9.2.0.0.1.1510905681\r\nXcode: 9.2\r\nXQuartz: 2.7.11 => /opt/X11\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/brew/issues/comments/410517003","html_url":"https://github.com/Homebrew/brew/issues/4604#issuecomment-410517003","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/4604","id":410517003,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDUxNzAwMw==","user":{"login":"forthrin","id":1167421,"node_id":"MDQ6VXNlcjExNjc0MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1167421?v=4","gravatar_id":"","url":"https://api.github.com/users/forthrin","html_url":"https://github.com/forthrin","followers_url":"https://api.github.com/users/forthrin/followers","following_url":"https://api.github.com/users/forthrin/following{/other_user}","gists_url":"https://api.github.com/users/forthrin/gists{/gist_id}","starred_url":"https://api.github.com/users/forthrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forthrin/subscriptions","organizations_url":"https://api.github.com/users/forthrin/orgs","repos_url":"https://api.github.com/users/forthrin/repos","events_url":"https://api.github.com/users/forthrin/events{/privacy}","received_events_url":"https://api.github.com/users/forthrin/received_events","type":"User","site_admin":false},"created_at":"2018-08-05T12:28:19Z","updated_at":"2018-08-05T12:28:19Z","author_association":"NONE","body":"@MikeMcQuaid: It would be quite easy to make a solution specific for MySQL, but a generic solution... Have you heard about a similar problem for other daemons? If this is only a problem with MySQL, maybe I could get in touch with the MySQL team and get back to you."}}
{"actor":{"display_login":"forthrin"}}