Skip to content

Instantly share code, notes, and snippets.

@freshjones
Last active May 10, 2021 17:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshjones/e5557d2d70dce35a94e1 to your computer and use it in GitHub Desktop.
Save freshjones/e5557d2d70dce35a94e1 to your computer and use it in GitHub Desktop.
dnsmasq start and stop via macports
//stop service
sudo launchctl unload /Library/LaunchDaemons/org.macports.dnsmasq.plist
//stop service through reboots
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.dnsmasq.plist
//start service
sudo port load dnsmasq
//reload through reboots
sudo launchctl load -w /Library/LaunchDaemons/org.macports.dnsmasq.plist
@apeschar
Copy link

Discover the name of the service (any service):

sudo launchctl list | grep dnsmasq

Stop the service:

sudo launchctl stop org.macports.dnsmasq

Start the service:

sudo launchctl start org.macports.dnsmasq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment