/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.38 Revision 1.39
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.38 2012/10/31 19:02:20 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.39 2013/08/01 19:41:44 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12Gentoo uses a special initscript format which, amongst other features, allows 12Gentoo uses a special initscript format which, amongst other features, allows
13dependency-driven decisions and virtual initscripts. This chapter explains all 13dependency-driven decisions and virtual initscripts. This chapter explains all
14these aspects and explains how to deal with these scripts. 14these aspects and explains how to deal with these scripts.
15</abstract> 15</abstract>
16 16
17<version>7</version> 17<version>8</version>
18<date>2012-10-31</date> 18<date>2013-08-01</date>
19 19
20<section> 20<section>
21<title>Runlevels</title> 21<title>Runlevels</title>
22<subsection> 22<subsection>
23<title>Booting your System</title> 23<title>Booting your System</title>
211<body> 211<body>
212 212
213<p> 213<p>
214The scripts that the <c>rc</c> process starts are called <e>init scripts</e>. 214The scripts that the <c>rc</c> process starts are called <e>init scripts</e>.
215Each script in <path>/etc/init.d</path> can be executed with the arguments 215Each script in <path>/etc/init.d</path> can be executed with the arguments
216<e>start</e>, <e>stop</e>, <e>restart</e>, <e>pause</e>, <e>zap</e>, 216<e>start</e>, <e>stop</e>, <e>restart</e>, <e>zap</e>,
217<e>status</e>, <e>ineed</e>, <e>iuse</e>, <e>needsme</e>, <e>usesme</e> or 217<e>status</e>, <e>ineed</e>, <e>iuse</e>, <e>needsme</e>, <e>usesme</e> or
218<e>broken</e>. 218<e>broken</e>.
219</p> 219</p>
220 220
221<p> 221<p>
233it) are left untouched. 233it) are left untouched.
234</note> 234</note>
235 235
236<p> 236<p>
237If you want to stop a service, but not the services that depend on it, you can 237If you want to stop a service, but not the services that depend on it, you can
238use the <c>pause</c> argument: 238use the <c>--nodeps</c> argument together with the <c>stop</c> command:
239</p> 239</p>
240 240
241<pre caption="Stopping Postfix but keep the depending services running"> 241<pre caption="Stopping Postfix but keep the depending services running">
242# <i>/etc/init.d/postfix pause</i> 242# <i>/etc/init.d/postfix --nodeps stop</i>
243</pre> 243</pre>
244 244
245<p> 245<p>
246If you want to see what status a service has (started, stopped, paused, ...) you 246If you want to see what status a service has (started, stopped, ...) you
247can use the <c>status</c> argument: 247can use the <c>status</c> argument:
248</p> 248</p>
249 249
250<pre caption="Status information for postfix"> 250<pre caption="Status information for postfix">
251# <i>/etc/init.d/postfix status</i> 251# <i>/etc/init.d/postfix status</i>

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20