When this is happening, it's often accompanied with all kinds of other errors and
these warnings drown in them. Make them easier to notice by reducing the interval
from 60 seconds to 1 second.
#include <syslog.h>
#include <signal.h>
-#define SERVICE_DROP_WARN_INTERVAL_SECS 60
+#define SERVICE_DROP_WARN_INTERVAL_SECS 1
#define SERVICE_DROP_TIMEOUT_MSECS (10*1000)
#define MAX_DIE_WAIT_MSECS 5000
#define SERVICE_MAX_EXIT_FAILURES_IN_SEC 10
int fd;
if (service->last_drop_warning +
- SERVICE_DROP_WARN_INTERVAL_SECS < ioloop_time) {
+ SERVICE_DROP_WARN_INTERVAL_SECS <= ioloop_time) {
service->last_drop_warning = ioloop_time;
if (service->process_limit > 1) {
limit_name = "process_limit";