1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 01:00:09 +01:00

Add "valet stop dnsmasq" option

Fixes #1419

Adds:
- `valet stop dnsmasq`
- `valet stop all` (which includes php, nginx, dnsmasq)
- When `valet stop` is called without a service name, a message indicates that dnsmasq can also be stopped via `valet stop dnsmasq`
- Aside: phpfpm now also displays a message when stopping; previously it was silent.
This commit is contained in:
Chris Brown
2023-06-20 16:30:04 -04:00
parent c7ace590ba
commit 269d157b0a
4 changed files with 38 additions and 3 deletions

View File

@@ -47,6 +47,14 @@ public function uninstall(): void
$this->files->unlink($this->resolverPath.'/'.$tld);
}
/**
* Stop the dnsmasq service.
*/
public function stop(): void
{
$this->brew->stopService(['dnsmasq']);
}
/**
* Tell Homebrew to restart dnsmasq.
*/