π ~1 min read
Table of contents
Symptom & Impact
A critical daemon is disabled or exits during boot, causing outages until manual restart.
Environment & Reproduction
Usually appears after configuration edits or package upgrades.
service -e
service myservice onestart
grep myservice /etc/rc.conf
Root Cause Analysis
Incorrect rc.conf knobs, missing runtime directories, or startup ordering dependencies prevent service initialization.
Quick Triage
Capture service logs and rc order quickly.
service myservice status
tail -n 100 /var/log/messages
rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | tail
Step-by-Step Diagnosis
Validate script requirements and runtime prerequisites.
sh -x /usr/local/etc/rc.d/myservice checkconfig
grep -E 'PROVIDE|REQUIRE' /usr/local/etc/rc.d/myservice
ls -la /var/run

Solution – Primary Fix
Fix rc.conf values, create required paths, and restart with proper dependencies.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
sysrc myservice_enable=YES
install -d -o root -g wheel -m 755 /var/run/myservice
service myservice restart

Solution – Alternative Approaches
Wrap startup in a local rc.d shim for delayed dependency readiness or use daemon supervision.
Verification & Acceptance Criteria
Service starts cleanly across reboots and remains stable.
service myservice status
reboot
service myservice status
Rollback Plan
Restore prior rc.conf and service script if regression appears.
cp -a /etc/rc.conf /etc/rc.conf.rollback
cp -a /usr/local/etc/rc.d/myservice /usr/local/etc/rc.d/myservice.rollback
Prevention & Hardening
Track rc settings in version control and test boot paths after each maintenance window.
Related Errors & Cross-Refs
Related to port conflicts, permission-denied runtime files, and late-mounted filesystems.
Related tutorial: View the step-by-step tutorial for freebsd-13.
View all freebsd-13 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
rc(8), rc.conf(5), and FreeBSD service management 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.