|
@@ -305,6 +305,10 @@ void monitor_system_status()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void send_heartbeat() {
|
|
|
|
|
+ route_debug_message("heartbeat\n");
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
int launch_module(int n)
|
|
int launch_module(int n)
|
|
|
{
|
|
{
|
|
|
pid_t fork_ret;
|
|
pid_t fork_ret;
|
|
@@ -969,6 +973,8 @@ int main(int argc, char **argv)
|
|
|
if( (time(NULL) - last_system_stat) >= SUPERVISOR_SYSTEM_STAT_INTERVAL)
|
|
if( (time(NULL) - last_system_stat) >= SUPERVISOR_SYSTEM_STAT_INTERVAL)
|
|
|
{
|
|
{
|
|
|
monitor_system_status();
|
|
monitor_system_status();
|
|
|
|
|
+
|
|
|
|
|
+ send_heartbeat();
|
|
|
|
|
|
|
|
last_system_stat = time(NULL);
|
|
last_system_stat = time(NULL);
|
|
|
}
|
|
}
|
|
@@ -1099,7 +1105,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
|
|
if(fds[i].fd == module_status[modnum].stdout_fd)
|
|
if(fds[i].fd == module_status[modnum].stdout_fd)
|
|
|
{
|
|
{
|
|
|
- route_debug_message("%s [%d]: %s", module_name[modnum], (int)module_status[modnum].pid, linebuffer);
|
|
|
|
|
|
|
+ //route_debug_message("%s [%d]: %s", module_name[modnum], (int)module_status[modnum].pid, linebuffer);
|
|
|
}
|
|
}
|
|
|
else if(fds[i].fd == module_status[modnum].stderr_fd)
|
|
else if(fds[i].fd == module_status[modnum].stderr_fd)
|
|
|
{
|
|
{
|