📖 ~1 min read
Table of contents
Symptom & Impact
USB/network hotplug automation scripts do not execute, requiring manual intervention.
Environment & Reproduction
Happens after custom devd.conf edits or permissions changes.
service devd status
cat /etc/devd.conf
service devd restart
Root Cause Analysis
Malformed devd rule syntax or wrong match criteria prevents event action execution.
Quick Triage
Check daemon health and recent event stream output.
service devd onestatus
pgrep devd
tail -n 80 /var/log/messages
Step-by-Step Diagnosis
Run devd in debug mode and verify rule matching during device attach.
service devd stop
/usr/sbin/devd -d -f /etc/devd.conf
dmesg | tail -n 60

Solution – Primary Fix
Correct rule syntax and restart devd with validated config.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
cp -a /etc/devd.conf /etc/devd.conf.bak
vi /etc/devd.conf
service devd start

Solution – Alternative Approaches
Move custom actions to dedicated include file under /usr/local/etc/devd for cleaner upgrades.
mkdir -p /usr/local/etc/devd
cat > /usr/local/etc/devd/custom.conf <<'EOF'
# custom rules
EOF
Verification & Acceptance Criteria
Hotplug event triggers expected command and logs confirm handler execution.
tail -f /var/log/messages
service devd restart
Rollback Plan
Restore prior devd.conf if new rule set suppresses other event handlers.
cp -a /etc/devd.conf.bak /etc/devd.conf
service devd restart
Prevention & Hardening
Lint custom devd rules and test with controlled hardware events.
service devd onestatus
cksum /etc/devd.conf
Related Errors & Cross-Refs
Related to rc.d service ordering issues and permission errors in invoked scripts.
Related tutorial: View the step-by-step tutorial for FreeBSD 15.
View all FreeBSD 15 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
FreeBSD devd daemon and event rule documentation.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.