Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cli/Valet/DnsMasq.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ function install($tld = 'test')
info('Valet is configured to serve for TLD [.'.$tld.']');
}

function restart()
{
$this->brew->restartService('dnsmasq');
}

/**
* Append the custom DnsMasq configuration file to the main configuration file.
*
Expand Down
4 changes: 4 additions & 0 deletions cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@
* Start the daemon services.
*/
$app->command('start', function () {
DnsMasq::restart();

PhpFpm::restart();

Nginx::restart();
Expand All @@ -239,6 +241,8 @@
* Restart the daemon services.
*/
$app->command('restart', function () {
DnsMasq::restart();

PhpFpm::restart();

Nginx::restart();
Expand Down