brew tap homebrew/services code example
Example 1: homebrew restart service
brew services restart mysql
Example 2: brew help service
$ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)
brew services restart mysql
$ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)