Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 684354 | Differences between
and this patch

Collapse All | Expand All

(-)a/tasks-reference/init-scripts/text.xml (-24 lines)
Lines 1-24 Link Here
1
<?xml version="1.0"?>
2
<guide self="tasks-reference/init-scripts/">
3
<chapter>
4
<title>Init Scripts</title>
5
6
<body>
7
8
<p>
9
Init scripts should be installed into <c>/etc/init.d</c> using the <c>doinitd</c> or
10
<c>newinitd</c> functions (see <uri link="::function-reference/install-functions/"/>).
11
Any configuration (commandline parameters or environment variables) for these scripts
12
should be handled via entries in <c>/etc/conf.d</c> with the same filename <d />
13
<c>doconfd</c> or <c>newconfd</c> can be used to install these.
14
</p>
15
16
<p>
17
An overview of the Gentoo init system and how to write init scripts is available
18
in the <uri link="https://wiki.gentoo.org/wiki/Handbook:X86/Working/Initscripts#Writing_initscripts">
19
Writing Init Scripts section</uri>.
20
</p>
21
22
</body>
23
</chapter>
24
</guide>
(-)a/tasks-reference/openrc-service-scripts/text.xml (+29 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<guide self="tasks-reference/openrc-service-scripts/">
3
<chapter>
4
<title>OpenRC Service Scripts</title>
5
6
<body>
7
8
<p>
9
  OpenRC service scripts should be installed using the <uri
10
  link="::function-reference/install-functions/"><c>doinitd</c> or
11
  <c>newinitd</c> functions</uri>, and their associated configuration
12
  files should be installed with either <uri
13
  link="::function-reference/install-functions/"><c>doconfd</c> or
14
  <c>newconfd</c></uri>.
15
</p>
16
17
<p>
18
  For writing and modifying OpenRC service scripts, the best source of
19
  information is the official OpenRC documentation. In particular, be
20
  sure to read the <c>openrc-run(8)</c> man page and the <uri
21
  link="https://github.com/OpenRC/openrc/blob/master/service-script-guide.md">OpenRC
22
  Service Script Guide</uri> that are installed along with the <uri
23
  link="https://packages.gentoo.org/packages/sys-apps/openrc">sys-apps/openrc</uri>
24
  package.
25
</p>
26
27
</body>
28
</chapter>
29
</guide>
(-)a/tasks-reference/text.xml (-2 / +1 lines)
Lines 20-26 ebuilds. Link Here
20
20
21
<include href="completion/"/>
21
<include href="completion/"/>
22
<include href="environment/"/>
22
<include href="environment/"/>
23
<include href="init-scripts/"/>
23
<include href="openrc-service-scripts/"/>
24
<include href="pam/"/>
24
<include href="pam/"/>
25
<include href="perl-modules/"/>
25
<include href="perl-modules/"/>
26
</guide>
26
</guide>
27
- 

Return to bug 684354