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
5320fc92
Commit
5320fc92
authored
Apr 01, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: kill php-cgi to deal with moved includes
parent
228eaee9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
rc.initial
src/etc/rc.initial
+1
-1
rc.initial.firmware
src/etc/rc.initial.firmware
+1
-1
rc.initial.setlanip
src/etc/rc.initial.setlanip
+2
-3
rc.restart_webgui
src/etc/rc.restart_webgui
+8
-0
No files found.
src/etc/rc.initial
View file @
5320fc92
...
...
@@ -87,7 +87,7 @@ case ${opmode} in
/usr/sbin/tcpdump
-s
256
-v
-S
-l
-n
-e
-ttt
-i
pflog0
;;
11
)
/usr/local/etc/rc.restart_webgui
/usr/local/etc/rc.restart_webgui
please
;;
12
)
/usr/local/etc/rc.initial.firmware
...
...
src/etc/rc.initial.firmware
View file @
5320fc92
...
...
@@ -47,7 +47,7 @@ pkg upgrade -y
echo
# restart the GUI after PHP changes have been applied
/usr/local/etc/rc.restart_webgui
/usr/local/etc/rc.restart_webgui
please
echo
...
...
src/etc/rc.initial.setlanip
View file @
5320fc92
...
...
@@ -459,9 +459,8 @@ if (!$dry_run) {
echo
"
\n
DHCPD..."
;
services_dhcpd_configure
();
}
if
(
$restart_webgui
)
{
echo
"
\n
Restarting webConfigurator... "
;
mwexec
(
"/usr/local/etc/rc.restart_webgui"
);
if
(
$restart_webgui
)
{
mwexec
(
'/usr/local/etc/rc.restart_webgui please'
);
}
}
...
...
src/etc/rc.restart_webgui
View file @
5320fc92
...
...
@@ -11,6 +11,14 @@ echo "Restarting webConfigurator...";
killbyname
(
"lighttpd"
);
if
(
$argc
>
1
)
{
/*
* Force killing all php-cgi children as well
* to avoid hiccups with moved include files.
*/
killbyname
(
"php-cgi"
);
}
while
(
is_process_running
(
"lighttpd"
))
{
echo
'.'
;
sleep
(
1
);
...
...
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