Revision fdfa8f43
Added by Jim Pingle over 11 years ago
etc/inc/system.inc | ||
---|---|---|
33 | 33 |
pfSense_BUILDER_BINARIES: /usr/sbin/powerd /usr/bin/killall /sbin/sysctl /sbin/route |
34 | 34 |
pfSense_BUILDER_BINARIES: /bin/hostname /bin/ls /usr/sbin/syslogd |
35 | 35 |
pfSense_BUILDER_BINARIES: /usr/sbin/pccardd /usr/local/sbin/lighttpd /bin/chmod /bin/mkdir |
36 |
pfSense_BUILDER_BINARIES: /usr/bin/tar /usr/local/bin/ntpd /usr/local/bin/ntpdate
|
|
36 |
pfSense_BUILDER_BINARIES: /usr/bin/tar /usr/local/sbin/ntpd /usr/local/sbin/ntpdate
|
|
37 | 37 |
pfSense_BUILDER_BINARIES: /usr/bin/nohup /sbin/dmesg /usr/local/sbin/atareinit /sbin/kldload |
38 | 38 |
pfSense_BUILDER_BINARIES: /usr/local/sbin/filterdns |
39 | 39 |
pfSense_MODULE: utils |
... | ... | |
1430 | 1430 |
exec("/bin/mkdir -p /var/empty && chmod ug+rw /var/empty/."); |
1431 | 1431 |
|
1432 | 1432 |
/* start opentpd, set time now and use /var/etc/ntpd.conf */ |
1433 |
mwexec("/usr/local/bin/ntpd -g -c {$g['varetc_path']}/ntpd.conf -p {$g['varrun_path']}/ntpd.pid", false, true); |
|
1433 |
mwexec("/usr/local/sbin/ntpd -g -c {$g['varetc_path']}/ntpd.conf -p {$g['varrun_path']}/ntpd.pid", false, true);
|
|
1434 | 1434 |
|
1435 | 1435 |
// Note that we are starting up |
1436 | 1436 |
log_error("NTPD is starting up."); |
... | ... | |
1445 | 1445 |
|
1446 | 1446 |
/* foreach through servers and write out to ntpd.conf */ |
1447 | 1447 |
foreach (explode(' ', $config['system']['timeservers']) as $ts) { |
1448 |
mwexec("/usr/local/bin/ntpdate -s $ts"); |
|
1448 |
mwexec("/usr/local/sbin/ntpdate -s $ts");
|
|
1449 | 1449 |
} |
1450 | 1450 |
|
1451 | 1451 |
if ($g['booting']) |
usr/local/sbin/ntpdate_sync_once.sh | ||
---|---|---|
23 | 23 |
fi |
24 | 24 |
done |
25 | 25 |
sleep 1 |
26 |
/usr/local/bin/ntpdate -s -t 5 ${SERVER} |
|
26 |
/usr/local/sbin/ntpdate -s -t 5 ${SERVER}
|
|
27 | 27 |
if [ "$?" = "0" ]; then |
28 | 28 |
NOTSYNCED="false" |
29 | 29 |
else |
... | ... | |
40 | 40 |
|
41 | 41 |
if [ -f /var/etc/ntpd.conf ]; then |
42 | 42 |
echo "Starting NTP Daemon." | /usr/bin/logger -t ntp; |
43 |
/usr/local/bin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid |
|
43 |
/usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
|
|
44 | 44 |
else |
45 | 45 |
echo "NTP configuration file missing, not starting daemon." | /usr/bin/logger -t ntp; |
46 | 46 |
fi |
usr/local/www/status_ntpd.php | ||
---|---|---|
29 | 29 |
POSSIBILITY OF SUCH DAMAGE. |
30 | 30 |
*/ |
31 | 31 |
/* |
32 |
pfSense_BUILDER_BINARIES: /usr/local/bin/ntpd /usr/local/bin/ntpq
|
|
32 |
pfSense_BUILDER_BINARIES: /usr/local/sbin/ntpd /usr/local/sbin/ntpq
|
|
33 | 33 |
pfSense_MODULE: ntpd |
34 | 34 |
*/ |
35 | 35 |
|
... | ... | |
42 | 42 |
|
43 | 43 |
require_once("guiconfig.inc"); |
44 | 44 |
|
45 |
exec("/usr/local/bin/ntpq -pn | /usr/bin/tail +3", $ntpq_output); |
|
45 |
exec("/usr/local/sbin/ntpq -pn | /usr/bin/tail +3", $ntpq_output);
|
|
46 | 46 |
|
47 | 47 |
$ntpq_servers = array(); |
48 | 48 |
foreach ($ntpq_output as $line) { |
... | ... | |
92 | 92 |
$ntpq_servers[] = $server; |
93 | 93 |
} |
94 | 94 |
|
95 |
exec("/usr/local/bin/ntpq -c clockvar", $ntpq_clockvar_output); |
|
95 |
exec("/usr/local/sbin/ntpq -c clockvar", $ntpq_clockvar_output);
|
|
96 | 96 |
foreach ($ntpq_clockvar_output as $line) { |
97 | 97 |
if (substr($line, 0, 9) == "timecode=") { |
98 | 98 |
$tmp = explode('"', $line); |
Also available in: Unified diff
ports ntp moved to sbin, follow