document config_foreach, close #2162
[openwrt/openwrt.git] / docs / init-scripts.tex
index 9d2fd3368be5c0731b13c0f376352c41ac637401..ea74ded7c068b005638460269e409dbc7af81c24 100644 (file)
@@ -24,24 +24,24 @@ This is done by the wrapper script \texttt{/etc/rc.common}.
 script should provide. \texttt{start()} is called when the user runs \texttt{/etc/init.d/httpd start}
 or (if the script is enabled and does not override this behavior) at system boot time.
 
 script should provide. \texttt{start()} is called when the user runs \texttt{/etc/init.d/httpd start}
 or (if the script is enabled and does not override this behavior) at system boot time.
 
-Enabling and disabling init scripts is done by running \texttt{/etc/init.d/\textit{name} start} 
-or \texttt{/etc/init.d/\textit{name} stop}. This creates or removes symbolic links to the
+Enabling and disabling init scripts is done by running \texttt{/etc/init.d/\textit{name} enable}
+or \texttt{/etc/init.d/\textit{name} disable}. This creates or removes symbolic links to the
 init script in \texttt{/etc/rc.d}, which is processed by \texttt{/etc/init.d/rcS} at boot time.
 
 The order in which these scripts are run is defined in the variable \texttt{START} in the init
 init script in \texttt{/etc/rc.d}, which is processed by \texttt{/etc/init.d/rcS} at boot time.
 
 The order in which these scripts are run is defined in the variable \texttt{START} in the init
-script, which is optional and defaults to \texttt{50}. Changing it requires running 
+script, which is optional and defaults to \texttt{50}. Changing it requires running
 \texttt{/etc/init.d/\textit{name} enable} again.
 
 You can also override these standard init script functions:
 \begin{itemize}
 \texttt{/etc/init.d/\textit{name} enable} again.
 
 You can also override these standard init script functions:
 \begin{itemize}
-       \item \texttt{boot()} \\
-               Commands to be run at boot time. Defaults to \texttt{start()}
-               
-       \item \texttt{restart()} \\
-               Restart your service. Defaults to \texttt{stop(); start()}
-       
-       \item \texttt{reload()} \\
-               Reload the configuration files for your service. Defaults to \texttt{restart()}
+    \item \texttt{boot()} \\
+        Commands to be run at boot time. Defaults to \texttt{start()}
+
+    \item \texttt{restart()} \\
+        Restart your service. Defaults to \texttt{stop(); start()}
+
+    \item \texttt{reload()} \\
+        Reload the configuration files for your service. Defaults to \texttt{restart()}
 
 \end{itemize}
 
 
 \end{itemize}