Skip to content

Instantly share code, notes, and snippets.

@dannygsmith
Created October 3, 2017 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannygsmith/13584c154ecfc14418983d892224407d to your computer and use it in GitHub Desktop.
Save dannygsmith/13584c154ecfc14418983d892224407d to your computer and use it in GitHub Desktop.
Script to stop laravel valet
#!/usr/bin/env bash
#styles
VP_NONE='\033[00m'
VP_RED='\033[01;31m'
VP_GREEN='\033[01;32m'
VP_YELLOW='\033[01;33m'
VP_PURPLE='\033[01;35m'
VP_CYAN='\033[01;36m'
VP_WHITE='\033[01;37m'
VP_BOLD='\033[1m'
VP_UNDERLINE='\033[4m'
clear
valet stop
sudo brew services stop dnsmasq
sudo brew services stop nginx
sudo brew services stop php72
brew services stop mysql
brew services stop mailhog
sleep 5
brew services stop mysql
clear
echo " "
echo -e "${VP_GREEN}${VP_BOLD}user brew services list to see if any services are running${VP_NONE}"
brew services list
ps aux|grep dnsmasq | grep -v grep|head -1
ps aux|grep nginx | grep -v grep|head -1
ps aux|grep php | grep -v grep|head -1
ps aux|grep mailhog | grep -v grep|head -1
ps aux|grep mysql | grep -v grep|head -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment