chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use more _cleanup_ macro
[elogind.git]
/
man
/
daemon.xml
diff --git
a/man/daemon.xml
b/man/daemon.xml
index 88dd082a33e356d2a3ece0deedc0aaa406ff109e..0085ad34faa51e1df2e6cb3e50502b1d6a9612d9 100644
(file)
--- a/
man/daemon.xml
+++ b/
man/daemon.xml
@@
-74,8
+74,8
@@
<orderedlist>
<listitem><para>Close all open file
<orderedlist>
<listitem><para>Close all open file
- descriptors except st
din, stdo
ut,
-
stder
r (i.e. the first three file
+ descriptors except st
andard input, outp
ut,
+
and erro
r (i.e. the first three file
descriptors 0, 1, 2). This ensures
that no accidentally passed file
descriptor stays around in the daemon
descriptors 0, 1, 2). This ensures
that no accidentally passed file
descriptor stays around in the daemon
@@
-149,7
+149,7
@@
write the daemon PID (as returned by
<function>getpid()</function>) to a
PID file, for example
write the daemon PID (as returned by
<function>getpid()</function>) to a
PID file, for example
- <filename>/
var/
run/foobar.pid</filename>
+ <filename>/run/foobar.pid</filename>
(for a hypothetical daemon "foobar")
to ensure that the daemon cannot be
started more than once. This must be
(for a hypothetical daemon "foobar")
to ensure that the daemon cannot be
started more than once. This must be
@@
-158,9
+158,7
@@
it is verified at the same time that
the PID previously stored in the PID
file no longer exists or belongs to a
it is verified at the same time that
the PID previously stored in the PID
file no longer exists or belongs to a
- foreign process. Commonly, some kind of
- file locking is employed to implement
- this logic.</para></listitem>
+ foreign process.</para></listitem>
<listitem><para>In the daemon process,
drop privileges, if possible and
<listitem><para>In the daemon process,
drop privileges, if possible and
@@
-252,7
+250,7
@@
detect service errors and problems. It
is recommended to follow the exit code
scheme as defined in the <ulink
detect service errors and problems. It
is recommended to follow the exit code
scheme as defined in the <ulink
- url="http://refspecs.
freestandards
.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html">LSB
+ url="http://refspecs.
linuxbase
.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html">LSB
recommendations for SysV init
scripts</ulink>.</para></listitem>
recommendations for SysV init
scripts</ulink>.</para></listitem>
@@
-354,7
+352,7
@@
<para>These recommendations are similar but
not identical to the <ulink
<para>These recommendations are similar but
not identical to the <ulink
- url="http
://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/LaunchOnDemandDaemons.html#//apple_ref/doc/uid/TP40001762-104738
">Apple
+ url="http
s://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html
">Apple
MacOS X Daemon Requirements</ulink>.</para>
</refsect2>
MacOS X Daemon Requirements</ulink>.</para>
</refsect2>
@@
-395,7
+393,7
@@
exclusively on boot (and manually by the
administrator) via SysV init scripts, as
detailed in the <ulink
exclusively on boot (and manually by the
administrator) via SysV init scripts, as
detailed in the <ulink
- url="http://refspecs.
freestandards
.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html">LSB
+ url="http://refspecs.
linuxbase
.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html">LSB
Linux Standard Base Core
Specification</ulink>. This method of
activation is supported ubiquitously on Linux
Linux Standard Base Core
Specification</ulink>. This method of
activation is supported ubiquitously on Linux