Project

General

Profile

Actions

Bug #1278

closed

log when captive portal restarts

Added by Thomas NOEL about 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Captive Portal
Target version:
Start date:
02/11/2011
Due date:
% Done:

30%

Estimated time:
0.10 h
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:
All

Description

Hi,

When captive portal is reconfigured, it restarts and disconnects all clients. We have a message on the service/captiveportal page. I think we could log some information too. Here is a patch against /etc/inc/captiveportal.inc :

--- orig/captiveportal.inc    2011-02-11 12:00:14.085710379 +0100
+++ new/captiveportal.inc    2011-02-11 14:25:56.361552795 +0100
@@ -211,6 +211,8 @@

         if ($g['booting'])
             echo "Starting captive portal... ";
+        else
+            captiveportal_syslog("restarting captive portal -- disconnect all clients");

         /* kill any running mini_httpd */
         killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid");

Thanks
--
Thomas

Actions #1

Updated by Chris Buechler about 13 years ago

  • Status changed from New to Resolved

committed, thanks

Actions

Also available in: Atom PDF