X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=docs%2Finit-scripts.tex;h=c8b07500b39e975e9dd499e9337d8f56712d366a;hp=e1d96a249119ead9ee9cc9e024eab20ac339ab05;hb=c1de6215a01d30fb51297f123cbd0166415fd869;hpb=d9219238b05cc37112dd11427581e1aa6b502b33 diff --git a/docs/init-scripts.tex b/docs/init-scripts.tex index e1d96a2491..c8b07500b3 100644 --- a/docs/init-scripts.tex +++ b/docs/init-scripts.tex @@ -24,13 +24,12 @@ 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} -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 -script, which is optional and defaults to \texttt{50}. Changing it requires running -\texttt{/etc/init.d/\textit{name} enable} again. +script. Changing it requires running \texttt{/etc/init.d/\textit{name} enable} again. You can also override these standard init script functions: \begin{itemize}