r110 - trunk/text/chapter09

robert at linuxfromscratch.org robert at linuxfromscratch.org
Tue Jan 18 05:03:23 PST 2005


Author: robert
Date: 2005-01-18 06:03:22 -0700 (Tue, 18 Jan 2005)
New Revision: 110

Modified:
   trunk/text/chapter09/02-openntpd.txt
Log:
Added and fixed a few things in openntpd's page

Modified: trunk/text/chapter09/02-openntpd.txt
===================================================================
--- trunk/text/chapter09/02-openntpd.txt	2005-01-18 12:51:10 UTC (rev 109)
+++ trunk/text/chapter09/02-openntpd.txt	2005-01-18 13:03:22 UTC (rev 110)
@@ -10,12 +10,13 @@
 # This version of the Network Time Protocol Daemon uses privilege separation,
 # like OpenSSH's daemon. We will need to add a dedicated group and user.
 
+install -o root -g sys -d /var/empty &&
 groupadd _ntp &&
-useradd -g _ntp -s /sbin/nologin -d /var/empty -c 'OpenNTP daemon' _ntp
+useradd -g _ntp -s /bin/false -d /var/empty -c 'OpenNTP daemon' _ntp
 
 # Then configure and install OpenNTPD.
 
-./configure --prefix=/usr/ --sysconfdir=/etc &&
+./configure --prefix=/usr --sysconfdir=/etc &&
 make &&
 make install
 
@@ -23,5 +24,11 @@
 
 make install-openntpd
 
+# Make these symlinks if you would like to save the system time to the
+# hardware clock at shutdown.
+
+ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&
+ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock
+
 # You may notice OpenNTPD is not compatable with the original NTPD.
 




More information about the hlfs-dev mailing list