Commit e72cb393 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) move reload_all_sync to rc.reload_all

parent 5d3bd181
......@@ -333,54 +333,6 @@ function reload_interfaces()
configd_run("interface reload");
}
/****f* legacy/reload_all_sync
* NAME
* reload_all - reload all settings
* * INPUTS
* none
* RESULT
* none
******/
function reload_all_sync()
{
global $config;
/* parse config.xml again */
$config = parse_config();
/* set up our timezone */
system_timezone_configure();
/* set up our hostname */
system_hostname_configure();
/* make hosts file */
system_hosts_generate();
/* generate resolv.conf */
system_resolvconf_generate();
/* enable routing */
system_routing_enable();
/* set up interfaces */
interfaces_configure();
/* start dyndns service */
services_dyndns_configure();
/* configure cron service */
configure_cron();
/* start the NTP client */
system_ntp_configure();
/* restart sshd */
mwexec_bg('/usr/local/etc/rc.sshd');
/* restart webConfigurator if needed */
mwexec_bg('/usr/local/etc/rc.restart_webgui');
}
function setup_serial_port($when = 'save', $path = '')
{
......
......@@ -34,6 +34,58 @@ require_once("ipsec.inc");
require_once("vpn.inc");
require_once("captiveportal.inc");
require_once("util.inc");
require_once("system.inc");
require_once("certs.inc");
/****f* legacy/reload_all_sync
* NAME
* reload_all - reload all settings
* * INPUTS
* none
* RESULT
* none
******/
function reload_all_sync()
{
global $config;
/* parse config.xml again */
$config = parse_config();
/* set up our timezone */
system_timezone_configure();
/* set up our hostname */
system_hostname_configure();
/* make hosts file */
system_hosts_generate();
/* generate resolv.conf */
system_resolvconf_generate();
/* enable routing */
system_routing_enable();
/* set up interfaces */
interfaces_configure();
/* start dyndns service */
services_dyndns_configure();
/* configure cron service */
configure_cron();
/* start the NTP client */
system_ntp_configure();
/* restart sshd */
mwexec_bg('/usr/local/etc/rc.sshd');
/* restart webConfigurator if needed */
mwexec_bg('/usr/local/etc/rc.restart_webgui');
}
log_error("rc.reload_all: Reloading all configuration settings.");
reload_all_sync();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment