--- orig/services_status.widget.php	2012-05-15 00:52:17.000000000 +0200
+++ new/services_status.widget.php	2012-05-15 00:52:21.000000000 +0200
@@ -75,10 +75,24 @@
 $services[] = $svcconfig;
 
 if(isset($config['captiveportal']['enable'])) {
+	/* not used in univnautes
 	$svcconfig = array();
 	$svcconfig['name'] = "captiveportal";
 	$svcconfig['description'] = gettext("Captive Portal");
 	$services[] = $svcconfig;
+	*/
+
+	$svcconfig = array();
+	$svcconfig['name'] = "cp_univnautes";
+	$svcconfig['description'] = gettext("Captive Portal (UnivNautes)");
+	$services[] = $svcconfig;
+
+	if($config['installedpackages']['univnautes']['config'][0]['enableidp']) {
+		$svcconfig = array();
+		$svcconfig['name'] = "univnautes_idp";
+		$svcconfig['description'] = gettext("Local IdP (UnivNautes)");
+		$services[] = $svcconfig;
+	}
 }
 
 $iflist = array();
@@ -202,7 +216,11 @@
 		if ($service['name'] == "openvpn")
 			$running = is_pid_running("{$g['varrun_path']}/openvpn_{$service['mode']}{$service['vpnid']}.pid");
 		else if ($service['name'] == "captiveportal")
-			$running = is_pid_running("{$g['varrun_path']}/lighty-CaptivePortal.pid");
+			$running = is_pid_running("{$g['varrun_path']}/lighty-CaptivePortal-SSL.pid");
+		else if ($service['name'] == "cp_univnautes")
+			$running = is_pid_running("{$g['varrun_path']}/pffedportal-fcgi.pid");
+		else if ($service['name'] == "univnautes_idp")
+			$running = is_pid_running("{$g['varrun_path']}/pfidp-fcgi.pid");
 		else
 			$running = is_service_running($service['name']);
 		if($running) {
