X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fdaemon.xml;h=1a2c325f9b19843fc157c725d440b3494416fe55;hp=fd29ba722d7d131387b5210dcb05df891d23ef51;hb=9546c6ed678bf8fbb93b9be620c9727b0e3d58ae;hpb=41a55c46ab8fb4ef6727434227071321fc762cce
diff --git a/man/daemon.xml b/man/daemon.xml
index fd29ba722..1a2c325f9 100644
--- a/man/daemon.xml
+++ b/man/daemon.xml
@@ -74,8 +74,8 @@
Close all open file
- descriptors except stdin, stdout,
- stderr (i.e. the first three file
+ descriptors except standard input, output,
+ and error (i.e. the first three file
descriptors 0, 1, 2). This ensures
that no accidentally passed file
descriptor stays around in the daemon
@@ -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
- foreign process. Commonly, some kind of
- file locking is employed to implement
- this logic.
+ foreign process.
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 LSB
+ url="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html">LSB
recommendations for SysV init
scripts.
@@ -354,7 +352,7 @@
These recommendations are similar but
not identical to the Apple
+ url="https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html">Apple
MacOS X Daemon Requirements.
@@ -395,7 +393,7 @@
exclusively on boot (and manually by the
administrator) via SysV init scripts, as
detailed in the LSB
+ url="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html">LSB
Linux Standard Base Core
Specification. This method of
activation is supported ubiquitously on Linux
@@ -942,6 +940,14 @@ fi
+
+ Placing Daemon Data
+
+ It is recommended to follow the genreal
+ guidelines for placing package files, as discussed in
+ file-hierarchy7.
+
+
See Also
@@ -950,7 +956,8 @@ fi
sd_listen_fds3,
sd_notify3,
daemon3,
- systemd.service5
+ systemd.service5,
+ file-hierarchy7