diff --git a/en_US.ISO8859-1/books/handbook/config/chapter.sgml b/en_US.ISO8859-1/books/handbook/config/chapter.sgml index a5d0243565..a37c473525 100644 --- a/en_US.ISO8859-1/books/handbook/config/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/config/chapter.sgml @@ -379,9 +379,19 @@ esac exit 0 - This script is called with - at startup, and the at shutdown to allow - it to carry out its purpose. + The startup scripts of FreeBSD will look in + /usr/local/etc/rc.d for scripts that have an + .sh extension and are executable by root. Those + scripts that are found are called with an option + at startup, and at shutdown to allow them to carry + out their purpose. So if you wanted the above sample script to be + picked up and run at the proper time during system startup, you should + save it to a file called FooBar.sh in + /usr/local/etc/rc.d and make sure it's + executable. You can make a shell script executable with &man.chmod.1; + as shown below: + + &prompt.root; chmod 755 FooBar.sh Some services expect to be invoked by &man.inetd.8; when a connection is received on a suitable port. This is common for