• Leigh Stoller's avatar
    Add new ntpstart file, intended to wrap up ntpd startup code, after · b437e338
    Leigh Stoller authored
    first talking to tmcd to get the ntpdrift and ntp server/peer lists.
    This is a strict wrapper so it should be invoked from /etc/rc.conf
    like this:
    
    	xntpd_program="/usr/local/etc/emulab/ntpstart"
    	xntpd_flags="/usr/sbin/ntpd -p /var/run/ntpd.pid"
    
    which is to say that this program passes it entire argument list off
    to the shell once it sets up the config file. We fire off ntp no
    matter what happens though, and allow for no actual changes to the
    config file if tmcd does not provide anything.
    
    TMCD: Add ntpinfo and ntpdrift commands, as per Mike's specification.
    ntpinfo returns lines like:
    	SERVER=nnn.nnn.nnn.nnn
    	...
    	PEER=nnn.nnn.nnn.nnn
    	...
    	DRIFT=nnn.nn
    
    and "ntpdrift nnn.nn" allows the current drift setting to be placed
    into the DB, although thats not currently happening. In the DB,
    ntpdrift is a new float slot in the nodes table, that defaults to
    NULL. The servers/peers are stored in a new table that looks like
    this:
    
    	+---------+---------+--------+
    	| node_id | IP      | type   |
    	+---------+---------+--------+
    	| wa32    | 1.1.1.1 | server |
    	| wa32    | 1.1.1.2 | server |
    	| wa32    | 1.1.1.3 | peer   |
    	| wa32    | 1.1.1.4 | peer   |
    	+---------+---------+--------+
    b437e338
Name
Last commit
Last update
account Loading commit data...
apache Loading commit data...
assign Loading commit data...
autoconf Loading commit data...
capture Loading commit data...
cdrom Loading commit data...
db Loading commit data...
dhcpd Loading commit data...
discvr Loading commit data...
doc Loading commit data...
event Loading commit data...
hw_config Loading commit data...
ipod Loading commit data...
lib Loading commit data...
os Loading commit data...
patches Loading commit data...
pxe Loading commit data...
rc.d Loading commit data...
rpms Loading commit data...
security Loading commit data...
sensors Loading commit data...
sql Loading commit data...
ssl Loading commit data...
sysadmin Loading commit data...
tbsetup Loading commit data...
testsuite Loading commit data...
tip Loading commit data...
tmcd Loading commit data...
tools Loading commit data...
utils Loading commit data...
vis Loading commit data...
www Loading commit data...
xmlrpc Loading commit data...
BUGS Loading commit data...
GNUmakefile.in Loading commit data...
GNUmakerules Loading commit data...
Makeconf.in Loading commit data...
PROJECTS Loading commit data...
README Loading commit data...
RESTRICTED-RIGHTS Loading commit data...
TODO Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
defs-barb-emulab Loading commit data...
defs-barb-mini Loading commit data...
defs-calfeld-emulab Loading commit data...
defs-default Loading commit data...
defs-kwebb-emulab Loading commit data...
defs-mini Loading commit data...
defs-neo-paper Loading commit data...
defs-newbold-emulab Loading commit data...
defs-newbold-macdb Loading commit data...
defs-newbold-mini Loading commit data...
defs-rchriste-emulab Loading commit data...
defs-ricci-emulab Loading commit data...
defs-ricci-mini Loading commit data...
defs-ricci-neo-paper Loading commit data...
defs-shash-emulab Loading commit data...
defs-shash-mini Loading commit data...
defs-stoller-emulab Loading commit data...
defs-stoller-home Loading commit data...
defs-stoller-mini Loading commit data...
defs-wide Loading commit data...