FreeBSD debug rc.d script Mar 31, 2018 Debugging rc.d scripts can be… always remember to set sysrc rc_debug="YES" sysrc rc_info="YES" or set -x flag in rc script $ printf '%s\n' 1a 'set -x' . w | ed -s /etc/rc.d/serviceScriptName