1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Merge pull request #1422 from drbyte/stopdnsmasq

Add "valet stop dnsmasq" option
This commit is contained in:
Matt Stauffer
2023-08-26 22:47:18 -04:00
committed by GitHub
4 changed files with 38 additions and 3 deletions

View File

@@ -506,7 +506,13 @@ function (ConsoleCommandEvent $event) {
PhpFpm::stopRunning();
Nginx::stop();
return info('Valet services have been stopped.');
return info('Valet core services have been stopped. To also stop dnsmasq, run: valet stop dnsmasq');
case 'all':
PhpFpm::stopRunning();
Nginx::stop();
Dnsmasq::stop();
return info('All Valet services have been stopped.');
case 'nginx':
Nginx::stop();
@@ -515,10 +521,14 @@ function (ConsoleCommandEvent $event) {
PhpFpm::stopRunning();
return info('PHP has been stopped.');
case 'dnsmasq':
Dnsmasq::stop();
return info('dnsmasq has been stopped.');
}
return warning(sprintf('Invalid valet service name [%s]', $service));
})->descriptions('Stop the Valet services');
})->descriptions('Stop the core Valet services, or all services by specifying "all".');
/**
* Uninstall Valet entirely. Requires --force to actually remove; otherwise manual instructions are displayed.