Debian Codegraph @

doc/FHSnotes

raw
1 /etc/ha.d/haresources and /etc/ha.d/ha.cf are config files which are
2 specifically permitted by the FHS.
3 "/etc contains configuration files and directories that are
4 specific to the current system."
5
6 /etc/ha.d/harc can be where it is by extension of the examples of /etc/rc.d/rc
7 since it is analagous by design.
8 Ditto for shellfuncs
9
10 The scripts in /etc/ha.d/init.d, rc.d, and resource.d are analagous by
11 design to the scripts in /etc/rc.d/init.d.
12
13 I think /etc/ha.d/bin should be moved over to /usr/lib/heartbeat
14
15
16 It isn't completely clear where heartbeat-fifo should go. I would suggest
17 /var/run because it is somewhat analagous to the transient
18 UNIX-domain socket example mentioned in the FHS.
19 "Programs that maintain transient UNIX-domain sockets should
20 place them in this directory". [/var/run]
21
22
23
24
25
26 ------------------------------------------------------------------------------
27 /etc contains configuration files and directories that are specific to the current system.
28
29 No binaries should be located under /etc.
30 ------------------------------------------------------------------------------
31 /opt is reserved for the installation of add-on application software packages.
32 I don't consider this an applicaiton software package.
33 ------------------------------------------------------------------------------
34 /usr/lib includes object files, libraries, and internal binaries that are not intended to be executed directly by users or shell scripts.
35
36 Applications may use a single subdirectory under /usr/lib. If an application uses a subdirectory, all architecture-dependent data
37 exclusively used by the application should be placed within that subdirectory. For example, the perl5 subdirectory for Perl 5 modules
38 and libraries.
39
40 Miscellaneous architecture-independent application-specific static files and subdirectories should be placed in /usr/share.
41
42 ------------------------------------------------------------------------------
43
44
45 5.9 /var/run : Run-time variable files
46
47 This directory contains system information files describing the system since it was booted. Files in this directory should be cleared
48 (removed or truncated as appropriate) at the beginning of the boot process.
49
50 Process identifier (PID) files, which were originally placed in /etc, should be placed in /var/run. The naming convention for PID
51 files is <program-name>.pid. For example, the crond PID file is named /var/run/crond.pid.
52
53 The internal format of PID files remains unchanged. The file should consist of the process identifier in ASCII-encoded decimal,
54 followed by a newline character. For example, if crond was process number 25, /var/run/crond.pid would contain three
55 characters: two, five, and newline.
56
57 Programs that read PID files should be somewhat flexible in what they accept; i.e., they should ignore extra whitespace, leading
58 zeroes, absence of the trailing newline, or additional lines in the PID file. Programs that create PID files should use the simple
59 specification located in the above paragraph.
60 ------------------------------------------------------------------------------
61 set no
62 5.11 /var/state : Variable state information
63
64 /var/state
65 <editor>
66 misc
67 xdm
68 <pkgtool>
69 <package>
70 Variable state information
71 Editor backup files and state
72 Miscellaneous state data
73 X display manager variable data
74 Packaging support files
75 State data for packages and subsystems
76
77
78 Tree 5.11.1
79
80 This hierarchy holds state information pertaining to an application or the system. State information is data that programs modify while
81 they run, and that pertains to one specific host. Users should never need to modify files in /var/state to configure a package's
82 operation.
83
84 State information is generally used to preserve the condition of an application (or a group of inter-related applications) between
85 invocations and between different instances of the same application. State information should generally remain valid after a reboot,
86 should not be logging output, and should not be spooled data.
87
88 An application (or a group of inter-related applications) should use a subdirectory of /var/state for its data. There is one required
89 subdirectory, /var/state/misc, which is intended for state files that don't need a subdirectory; the other subdirectories should
90 only be present if the application in question is included in the distribution.
91
92 /var/state/<name> is the location that should be used for all distribution packaging support. Different distributions may use
93 different names, of course.
94
95 Previous releases of this standard used the name /var/lib for this hierarchy. /var/lib is deprecated, but it may be used in
96 parallel with the required /var/state hierarchy, as a transitional measure for application-specific data. Note, however, that this
97 allowance will be removed in a future release of the standard. Alternately, /var/lib may be made a symbolic link to /var/state.
98
99 BEGIN RATIONALE
100
101 /usr/lib is increasingly used solely for object files or archives of them; this is true of the current BSD UNIX variants as well as
102 current GNU packages. Accordingly, the name /var/lib seemed inappropriate.
103
104 BSD uses the name /var/db for a similar directory. This name seemed overly constricting, as it implied a directory structure
105 intended primarily for database (.db) files.
106
107 END RATIONALE
108
109 ------------------------------------------------------------------------------
110 4.5 /usr/lib : Libraries for programming and packages
111
112 /usr/lib includes object files, libraries, and internal binaries that are not intended to be executed directly by users or shell scripts.
113
114
115 Applications may use a single subdirectory under /usr/lib. If an application uses a subdirectory, all architecture-dependent data
116 exclusively used by the application should be placed within that subdirectory. For example, the perl5 subdirectory for Perl 5 modules
117 and libraries.
118
119 Miscellaneous architecture-independent application-specific static files and subdirectories should be placed in /usr/share.
120
121 Some executable commands such as makewhatis and sendmail have also been traditionally placed in /usr/lib. makewhatis is
122 an internal binary and should be placed in a binary directory; users access only catman. Newer sendmail binaries are now placed by
123 default in /usr/sbin; a symbolic link should remain from /usr/lib. Additionally, systems using Smail should place Smail in
124 /usr/sbin/smail, and /usr/sbin/sendmail should be a symbolic link to it.
125
126 A symbolic link /usr/lib/X11 pointing to the lib/X11 directory of the default X distribution is required if X is installed.
127
128 Note: No host-specific data for the X Window System should be stored in /usr/lib/X11. Host-specific configuration files such as
129 Xconfig or XF86Config should be stored in /etc/X11. This should include configuration data such as system.twmrc even if it is
130 only made a symbolic link to a more global configuration file (probably in /usr/X11R6/lib/X11).