Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
e72cb393
Commit
e72cb393
authored
Jul 22, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Jul 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) move reload_all_sync to rc.reload_all
parent
5d3bd181
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
48 deletions
+52
-48
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+0
-48
rc.reload_all
src/etc/rc.reload_all
+52
-0
No files found.
src/etc/inc/pfsense-utils.inc
View file @
e72cb393
...
@@ -333,54 +333,6 @@ function reload_interfaces()
...
@@ -333,54 +333,6 @@ function reload_interfaces()
configd_run
(
"interface reload"
);
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
=
''
)
function
setup_serial_port
(
$when
=
'save'
,
$path
=
''
)
{
{
...
...
src/etc/rc.reload_all
View file @
e72cb393
...
@@ -34,6 +34,58 @@ require_once("ipsec.inc");
...
@@ -34,6 +34,58 @@ require_once("ipsec.inc");
require_once
(
"vpn.inc"
);
require_once
(
"vpn.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"util.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."
);
log_error
(
"rc.reload_all: Reloading all configuration settings."
);
reload_all_sync
();
reload_all_sync
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment