aboutsummaryrefslogtreecommitdiffstats
path: root/docs/init-scripts.tex
diff options
context:
space:
mode:
authorTim Yardley <lst@openwrt.org>2006-11-06 23:37:55 +0000
committerTim Yardley <lst@openwrt.org>2006-11-06 23:37:55 +0000
commit6c8d5185bfc08ef2e6df54ef29746e794486f5a3 (patch)
tree6fd7265888aedf9839f07b02acc73dc27439fba2 /docs/init-scripts.tex
parent62dc30f27a35ebb8c5fea9bdcc09ecd902cb6186 (diff)
downloadupstream-6c8d5185bfc08ef2e6df54ef29746e794486f5a3.tar.gz
upstream-6c8d5185bfc08ef2e6df54ef29746e794486f5a3.tar.bz2
upstream-6c8d5185bfc08ef2e6df54ef29746e794486f5a3.zip
some basic cleanup, stylistic change for config files, and slight fixes
SVN-Revision: 5455
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 9d2fd3368b..e1d96a2491 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}
a id='n213' href='#n213'>213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303