Skip to content

Commit 9cfa997

Browse files
committed
Made /home/ldm the default home directory of the LDM user
1 parent e0e00de commit 9cfa997

8 files changed

+19
-17
lines changed

CHANGE_LOG

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Documentation:
33
* Removed the Coverity Scan badge from the top-level, version-specific "index.html" page
44
because the code is now being scanned by GitHub's CodeQL
5+
* Changed the example LDM home-directory from "/opt/ldm" back to "/home/ldm" because that's
6+
more appropriate for an LDM *user*
57

68
6.14.1.5 2022-12-14T11:45:29-0700
79
NOAAPort:

html/basics/LDM-user.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ <h1>The LDM User</h1>
1616
has the following characteristics:</p>
1717
<ul>
1818
<li>The user's name is "ldm".</li>
19-
<li>The user's home directory is "/opt/ldm". If you want to use another home-directory, then you should install
19+
<li>The user's home directory is "/home/ldm". If you want to use another home-directory, then you should install
2020
the <a href="glindex.html#LDM">LDM</a> system from a source distribution rather than from a binary one.</li>
2121
<li>The subdirectory structure of the user's home directory is as specified in the relevant
2222
<a href="preinstallation.html#subdirs">preinstallation step</a>.</li>
23-
<li>The user's <a href="glindex.html#system group">system group</a> is usually the same as that of the
24-
<a href="glindex.html#McIDAS">McIDAS</a> and <a href="glindex.html#GEMPAK">GEMPAK</a> users so that the
23+
<li>The user's <a href="glindex.html#system group">system group</a> is usually the same as that of the
24+
<a href="glindex.html#McIDAS">McIDAS</a> and <a href="glindex.html#GEMPAK">GEMPAK</a> users so that the
2525
<a href="glindex.html#pqact">pqact</a> process can create files in those user's data directories.</li>
2626
</ul>
2727

html/basics/newlog.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ <h1>LDM Log File Rotation</h1>
2626
<p>For example, if the ldmadmin newlog command was executed at 18:00 on the 20th and if the $numlogs variable was 2,
2727
then the following files:</p>
2828
<pre>
29-
-rw-r--r-- 1 ldm staff 972 Sep 19 18:00 /opt/ldm/logs/ldmd.log
30-
-rw-r--r-- 1 ldm staff 845 Sep 18 18:00 /opt/ldm/logs/ldmd.log.1
31-
-rw-rw-r-- 1 ldm staff 826 Sep 17 18:00 /opt/ldm/logs/ldmd.log.2
32-
-rw-r--r-- 1 ldm staff 981 Sep 16 18:00 /opt/ldm/logs/ldmd.log.3
29+
-rw-r--r-- 1 ldm staff 972 Sep 19 18:00 /home/ldm/logs/ldmd.log
30+
-rw-r--r-- 1 ldm staff 845 Sep 18 18:00 /home/ldm/logs/ldmd.log.1
31+
-rw-rw-r-- 1 ldm staff 826 Sep 17 18:00 /home/ldm/logs/ldmd.log.2
32+
-rw-r--r-- 1 ldm staff 981 Sep 16 18:00 /home/ldm/logs/ldmd.log.3
3333
</pre>
3434
<p>would become</p>
3535
<pre>
36-
-rw-r--r-- 1 ldm staff 0 Sep 20 18:00 /opt/ldm/logs/ldmd.log
37-
-rw-r--r-- 1 ldm staff 972 Sep 19 18:00 /opt/ldm/logs/ldmd.log.1
38-
-rw-r--r-- 1 ldm staff 845 Sep 18 18:00 /opt/ldm/logs/ldmd.log.2
39-
-rw-r--r-- 1 ldm staff 981 Sep 16 18:00 /opt/ldm/logs/ldmd.log.3
36+
-rw-r--r-- 1 ldm staff 0 Sep 20 18:00 /home/ldm/logs/ldmd.log
37+
-rw-r--r-- 1 ldm staff 972 Sep 19 18:00 /home/ldm/logs/ldmd.log.1
38+
-rw-r--r-- 1 ldm staff 845 Sep 18 18:00 /home/ldm/logs/ldmd.log.2
39+
-rw-r--r-- 1 ldm staff 981 Sep 16 18:00 /home/ldm/logs/ldmd.log.3
4040
</pre>
4141
<p>Note that the ldmd.log.3 file was untouched.</p>
4242
<p>An excellent way to ensure that this rotation occurs on an automatic and regular basis is to execute the command

html/basics/preinstallation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h3 id="LDM user">Create the <a href="glindex.html#LDM">LDM</a> user-account</h3
2626
<ul>
2727
<li>The canonical name of the user is &quot;<code>ldm</code>&quot;, but that's not a requirement.</li>
2828
<li>The installation process is simpler if the LDM user's home-directory is on local disk.
29-
&quot;<code>/opt/ldm</code>&quot; and &quot;<code>/home/ldm</code> are viable candidates. </li>
29+
&quot;<code>/home/ldm</code>&quot; and &quot;<code>/home/ldm</code> are viable candidates. </li>
3030
<li>Use a group ID that allows other non-<a href="glindex.html#LDM">LDM</a>
3131
processes to write files (decoders, etc.). The
3232
<a href="https://www.unidata.ucar.edu/software/mcidas/index.html">McIDAS</a> and

html/basics/rpm-install-steps.html.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<li>Install the package with the command <code>rpm --install [--prefix=<i>ldmhome</i>] <i>rpm-file</i></code>
3737
where <i>rpm-file</i> is the RPM file that you just downloaded. The square brackets denote an optional argument
3838
in which <i>ldmhome</i> is the home-directory of the <a href="glindex.html#LDM user">LDM user</a>. The default
39-
home-directory is /opt/ldm. This option must be used if</li>
39+
home-directory is /home/ldm. This option must be used if</li>
4040
<ol>
4141
<li>An LDM user account exists on the platform with a home-directory that differs from the default; or</li>
4242
<li>An LDM user account doesn't exist on the platform and you want the LDM user to have a home-directory that

html/ldmConfigInstallList.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h2 id="boot">Ensure that the LDM is started at boot-time</h2>
143143
(<i>e.g.</i>, the <b>syslog</b> daemon). One possible LDM script is:</p>p>
144144
<pre>
145145
export PATH=/bin:/usr/bin:/usr/etc:/usr/ucb
146-
LDMADMIN=/opt/ldm/bin/ldmadmin
146+
LDMADMIN=/home/ldm/bin/ldmadmin
147147

148148
case "$1" in
149149

ldm.spec.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Summary: A system for subscribing-to, receiving, relaying, and processing
55

66
# The default home-directory of the installed LDM package.
77
#
8-
%global _prefix /opt/ldm
9-
Prefix: /opt/ldm
8+
%global _prefix /home/ldm
9+
Prefix: /home/ldm
1010

1111
License: BSD 3-Clause + patent protection
1212
URL: http://www.unidata.ucar.edu/software/ldm

pqsurf/pqsurf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/*
1010
* Need to create a queue before running this:
11-
* pqcreate -c -s 2M -S 13762 /opt/ldm/data/pqsurf.pq
11+
* pqcreate -c -s 2M -S 13762 /home/ldm/data/pqsurf.pq
1212
*/
1313

1414
#include <config.h>

0 commit comments

Comments
 (0)