launchctl: How to restart a service
For example: squid
I tried google: no relevant results on the first pages
I tried this forum: a single unanswered question
After ps ax|grep squid, I tried "/opt/local/etc/LaunchDaemons/org.macports.Squid/Squid.wrapper stop": error messages (except for the first time), and no effect
I tried launchctl stop org.macports.Squid: no effect at all
I tried killall squid: the main process is still running
I killed the main process: still running
I killed it with -9: no longer running, a new squid is starting
I don't think kill -9 is the proper way to restart services. What is it? In "tradiional" Linux, it's simply "/etc/init.d/whatever restart" (don't know about systemd)
MacBook Pro with Retina display, OS X Mountain Lion (10.8.3)