Cannot debug configd To debug configd it is suggested by man page to run it using 

$ usr/libexec/configd -d 


And you would kill it before launching it using SIGTERM otherwise it will launch again as follows:

$ sudo killall -SIGTERM configd     


From man page of configd


 SIGNALS
 configd was designed to run without any intervention but if you insist on sending a signal to the dae-mon daemon
 mon then the following are available:

 SIGHUP   This signal, typically used to tell a daemon to reload its configuration, is ignored (there is
          no configuration).

 SIGTERM  This signal initiates a "graceful" shutdown of the daemon.



Problem is that SIGTERM is not gracefully killing configd. It is restarting right back up. Do you guys know any solution?

I also tried killing launchctl

$ sudo launchctl unload /System/Library/LaunchDaemons/com.apple.configd.plist
Password:
/System/Library/LaunchDaemons/com.apple.configd.plist: Operation not permitted while System Integrity Protection is engaged


Also tried to disable system integrity protection for testing but failed:

$ sudo csrutil disable
csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS.


My platform

$ sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.11.6
BuildVersion:   15G1004
You can't turn off SIP on a running macOS system. You need to boot into the Recovery partition and run the csrutil command. This page at Macworld details the steps nicely.


Restart your Mac.

Before OS X starts up, hold down Command-R and keep it held down until you see an Apple icon and a progress bar. Release. This boots you into Recovery.

From the Utilities menu, select Terminal. At the prompt type exactly the following and then press Return: csrutil disable

Terminal should display a message that SIP was disabled.

From the  menu, select Restart.



You can re-enable SIP by following the above steps, but using csrutil enable instead.