summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-06 13:03:58 +0000
committerErmal <eri@pfsense.org>2010-09-06 13:04:35 +0000
commitc89609705be6271e6a302d7c1e08e736c247de43 (patch)
treea237691c700a3c53b257fd0b25218a45a69571f0 /etc/inc/system.inc
parent4c5b8653409047e9be2e2dc6f4082101a3c53540 (diff)
downloadpfsense-c89609705be6271e6a302d7c1e08e736c247de43.zip
pfsense-c89609705be6271e6a302d7c1e08e736c247de43.tar.gz
Fix ntpd starting at boot time and also status->services checking/stop/start/restart display. Previously ntpd would not start at all either though it should.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 8ecc90d..09f1b98 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1112,7 +1112,7 @@ function system_timezone_configure() {
function system_ntp_configure() {
global $config, $g;
- $syscfg = $config['system'];
+ $syscfg =& $config['system'];
/* open configuration for wrting or bail */
$fd = fopen("{$g['varetc_path']}/ntpd.conf","w");
@@ -1152,16 +1152,13 @@ function system_ntp_configure() {
/* if openntpd is running, kill it */
while(is_process_running("ntpd")) {
- mwexec("/usr/bin/killall ntpd", true);
+ killbyname("ntpd");
}
/* if /var/empty does not exist, create it */
if(!is_dir("/var/empty"))
exec("/bin/mkdir -p /var/empty && chmod ug+rw /var/empty/.");
- if($g['booting'])
- return;
-
/* start opentpd, set time now and use /var/etc/ntpd.conf */
exec("/usr/local/sbin/ntpd -s -f {$g['varetc_path']}/ntpd.conf");
OpenPOWER on IntegriCloud