Example: /etc/rc.d/dhclient #!/bin/sh # # PROVIDE: dhclient # REQUIRE: network mountcritlocal # . /etc/rc.subr name="dhclient" rcvar=$name command="/sbin/${name}" pidfile="/var/run/${name}.pid" load_rc_config $name run_rc_command "$1"