summaryrefslogtreecommitdiffstats
path: root/docs/init-scripts.tex
diff options
context:
space:
mode:
authorpavlov <pavlov@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-06 23:37:55 +0000
committerpavlov <pavlov@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-06 23:37:55 +0000
commitd9219238b05cc37112dd11427581e1aa6b502b33 (patch)
tree16795db1eb0b5a75512b7d4560d30da29139f44c /docs/init-scripts.tex
parent495294a4dfd42f71e2fde24a652d56e7f8da6375 (diff)
some basic cleanup, stylistic change for config files, and slight fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5455 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'docs/init-scripts.tex')
-rw-r--r--docs/init-scripts.tex20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/init-scripts.tex b/docs/init-scripts.tex
index 9d2fd3368..e1d96a249 100644
--- a/docs/init-scripts.tex
+++ b/docs/init-scripts.tex
@@ -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.
-Enabling and disabling init scripts is done by running \texttt{/etc/init.d/\textit{name} start}
+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
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}
- \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}