π ~1 min read
Table of contents
Symptom & Impact
Custom or third-party service does not start after reboot although manual service start works later.
Environment & Reproduction
Seen on systems with recently added rc.d scripts or copied service templates.
service -e
service onestatus || true
rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | tail -n 60
Root Cause Analysis
The script lacks correct PROVIDE/REQUIRE/BEFORE keywords, so boot ordering omits or delays startup.
Quick Triage
Review script headers and enabled settings.
head -n 40 /usr/local/etc/rc.d/
sysrc -a | grep
service enabled
Step-by-Step Diagnosis
Map dependency chain and boot logs for ordering mismatch.
grep -E 'PROVIDE|REQUIRE|BEFORE' /usr/local/etc/rc.d/
rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | nl | grep
dmesg -a | tail -n 120

Solution – Primary Fix
Add correct dependency metadata and rcvar handling in the script, then reload service flow.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
vi /usr/local/etc/rc.d/
chmod 555 /usr/local/etc/rc.d/
service rcvar
service restart

Solution – Alternative Approaches
Use late start hooks if strict dependency wiring is not immediately possible.
sysrc _enable=YES
echo 'sleep 10; service start' >> /etc/rc.local
Verification & Acceptance Criteria
Service starts automatically after reboot with no ordering warnings.
shutdown -r now
service status
grep /var/log/messages | tail -n 20
Rollback Plan
Restore previous script and disable auto-start if startup regression affects boot critical path.
cp /root/backup/.rc.d /usr/local/etc/rc.d/
sysrc _enable=NO
Prevention & Hardening
Validate rc.d script headers in code review before deployment.
grep -R 'PROVIDE:' /usr/local/etc/rc.d
rcorder /etc/rc.d/* /usr/local/etc/rc.d/* >/dev/null
Related Errors & Cross-Refs
Can overlap with missing network-online behavior and jailed service startup assumptions.
Related tutorial: View the step-by-step tutorial for FreeBSD 14.
View all FreeBSD 14 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
rc.subr, rcorder, 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.