IT lexicon › Infra & Ops › rc.d (BSD)

rc.d (BSD)

Infra & Ops På svenska → Updated: 2026-11-09

The BSD startup scripts: one script per service, ordered by dependencies written in comments at the top.

Classic BSD started everything from a handful of big scripts, /etc/rc and /etc/rc.local, where the boot order was whatever order the lines happened to be in. Luke Mewburn replaced that in NetBSD 1.5 in 2000 with a directory of small scripts. Each one declares in comments what it provides and requires, such as # PROVIDE: sshd and # REQUIRE: NETWORKING, and the rcorder tool works out a start order from that.

Whether a service runs is decided by variables in rc.conf, like sshd_enable="YES" on FreeBSD. FreeBSD adopted the model in 5.0 in 2003. OpenBSD also has an /etc/rc.d, but a simpler variant without rcorder, managed with rcctl. None of them followed Linux into a service manager with its own configuration syntax; a shell script is still something you can read when the machine refuses to boot.

← Back to the lexicon