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
a2800ad0
Commit
a2800ad0
authored
Apr 06, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add wrapper for background events to legacy code, fix gui reload
parent
a825ec10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
util.inc
src/etc/inc/util.inc
+7
-0
actions_service.conf
src/opnsense/service/conf/actions_service.conf
+1
-1
diag_logs_settings.php
src/www/diag_logs_settings.php
+1
-1
system_advanced_admin.php
src/www/system_advanced_admin.php
+1
-1
No files found.
src/etc/inc/util.inc
View file @
a2800ad0
...
...
@@ -149,6 +149,13 @@ function send_event($cmd)
return
$backend
->
sendEvent
(
"
{
$cmd
}
"
);
}
function
send_background_event
(
$cmd
)
{
require_once
(
"script/load_phalcon.php"
);
$backend
=
new
OPNsense\Core\Backend
();
return
$backend
->
sendBackgroundEvent
(
"
{
$cmd
}
"
);
}
function
is_module_loaded
(
$module_name
)
{
$module_name
=
str_replace
(
".ko"
,
""
,
$module_name
);
$running
=
0
;
...
...
src/opnsense/service/conf/actions_service.conf
View file @
a2800ad0
...
...
@@ -53,7 +53,7 @@ type:script
message
:
starting
sshd
[
reload
|
restart
.
webgui
]
command
:/
usr
/
local
/
etc
/
rc
.
restart_webgui
command
:
sleep
2
;
/
usr
/
local
/
etc
/
rc
.
restart_webgui
parameters
:
type
:
script
message
:
webConfigurator
restart
in
progress
src/www/diag_logs_settings.php
View file @
a2800ad0
...
...
@@ -160,7 +160,7 @@ if ($_POST['resetlogs'] == gettext("Reset Log Files")) {
ob_flush
();
flush
();
log_error
(
gettext
(
"webConfigurator configuration has changed. Restarting webConfigurator."
));
send_
event
(
"&
service restart webgui"
);
send_
background_event
(
"
service restart webgui"
);
$savemsg
.=
"<br />"
.
gettext
(
"WebGUI process is restarting."
);
}
...
...
src/www/system_advanced_admin.php
View file @
a2800ad0
...
...
@@ -615,7 +615,7 @@ if ($restart_webgui) {
ob_flush
();
flush
();
log_error
(
gettext
(
"webConfigurator configuration has changed. Restarting webConfigurator."
));
send_
event
(
"&
service restart webgui"
);
send_
background_event
(
"
service restart webgui"
);
}
?>
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