Revision 10e741d5
Added by Jim Pingle about 13 years ago
etc/rc.bootup | ||
---|---|---|
282 | 282 |
echo "Starting NTP time client..."; |
283 | 283 |
/* At bootup this will just write the config, ntpd will launch from ntpdate_sync_once.sh */ |
284 | 284 |
system_ntp_configure(false); |
285 |
mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
|
|
285 |
mwexec_bg("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh");
|
|
286 | 286 |
|
287 | 287 |
/* start load balancer daemon */ |
288 | 288 |
relayd_configure(); |
etc/rc.newwanip | ||
---|---|---|
51 | 51 |
|
52 | 52 |
/* restart packages */ |
53 | 53 |
system_ntp_configure(false); |
54 |
mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh");
|
|
54 |
mwexec_bg("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh");
|
|
55 | 55 |
log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages."); |
56 | 56 |
send_event("service reload packages"); |
57 | 57 |
} |
Also available in: Unified diff
ntpdate was hanging, use the same hacky fix that works for ntpd and it works too. All happy, even from a cold boot on ALIX 2d3 with no RTC battery.