Home
last modified time | relevance | path

Searched refs:fpm_global_config (Results 1 – 7 of 7) sorted by relevance

/PHP-7.3/sapi/fpm/fpm/
H A Dfpm_systemd.c39 fpm_global_config.systemd_watchdog ? "WATCHDOG=1\n" : "", in fpm_systemd()
40 …active, idle, requests, slow_req, ((float)requests - last) * 1000.0 / fpm_global_config.systemd_in… in fpm_systemd()
72 if (fpm_global_config.systemd_interval > 0) { in fpm_systemd_heartbeat()
74 fpm_event_add(&heartbeat, fpm_global_config.systemd_interval); in fpm_systemd_heartbeat()
75 zlog(ZLOG_NOTICE, "systemd monitor interval set to %dms", fpm_global_config.systemd_interval); in fpm_systemd_heartbeat()
95 if (fpm_global_config.systemd_interval > 0) { in fpm_systemd_conf()
99 fpm_global_config.systemd_watchdog = 1; in fpm_systemd_conf()
100 fpm_global_config.systemd_interval = interval; in fpm_systemd_conf()
102 } else if (fpm_global_config.systemd_interval < 0) { in fpm_systemd_conf()
104 fpm_global_config.systemd_interval = FPM_SYSTEMD_DEFAULT_HEARTBEAT; in fpm_systemd_conf()
[all …]
H A Dfpm_children.c275 if (fault == fpm_global_config.emergency_restart_threshold) { in fpm_children_bury()
279 for (i = 0; i < fpm_global_config.emergency_restart_threshold; i++) { in fpm_children_bury()
280 if (now - last_faults[i] > fpm_global_config.emergency_restart_interval) { in fpm_children_bury()
288 … in %d sec) is reached, initiating reload", fpm_global_config.emergency_restart_threshold, fpm_glo… in fpm_children_bury()
398 …&& wp->running_children < max && (fpm_global_config.process_max < 1 || fpm_globals.running_childre… in fpm_children_make()
433 …if (!warned && fpm_global_config.process_max > 0 && fpm_globals.running_children >= fpm_global_con… in fpm_children_make()
468 if (fpm_global_config.emergency_restart_threshold && in fpm_children_init_main()
469 fpm_global_config.emergency_restart_interval) { in fpm_children_init_main()
471 last_faults = malloc(sizeof(time_t) * fpm_global_config.emergency_restart_threshold); in fpm_children_init_main()
477 memset(last_faults, 0, sizeof(time_t) * fpm_global_config.emergency_restart_threshold); in fpm_children_init_main()
H A Dfpm_conf.c1143 if (fpm_global_config.pid_file) { in fpm_conf_unlink_pid()
1157 if (fpm_global_config.pid_file) { in fpm_conf_write_pid()
1186 if (fpm_global_config.pid_file) { in fpm_conf_post_process()
1209 …if (fpm_global_config.process_priority != 64 && (fpm_global_config.process_priority < -19 || fpm_g… in fpm_conf_post_process()
1214 if (!fpm_global_config.error_log) { in fpm_conf_post_process()
1271 free(fpm_global_config.pid_file); in fpm_conf_cleanup()
1272 free(fpm_global_config.error_log); in fpm_conf_cleanup()
1274 fpm_global_config.pid_file = 0; in fpm_conf_cleanup()
1275 fpm_global_config.error_log = 0; in fpm_conf_cleanup()
1279 fpm_global_config.syslog_ident = 0; in fpm_conf_cleanup()
[all …]
H A Dfpm_stdio.c53 if (fpm_global_config.daemonize || (!isatty(STDERR_FILENO) && !fpm_globals.force_stderr)) {
55 if (fpm_global_config.daemonize) {
319 if (!strcasecmp(fpm_global_config.error_log, "syslog")) {
320 …php_openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility);
329 fd = open(fpm_global_config.error_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR);
331 zlog(ZLOG_SYSERROR, "failed to open error_log (%s)", fpm_global_config.error_log);
H A Dfpm_unix.c447 if (fpm_global_config.rlimit_files) { in fpm_unix_init_main()
450 r.rlim_max = r.rlim_cur = (rlim_t) fpm_global_config.rlimit_files; in fpm_unix_init_main()
453 …tem limits or decrease rlimit_files. setrlimit(RLIMIT_NOFILE, %d)", fpm_global_config.rlimit_files… in fpm_unix_init_main()
458 if (fpm_global_config.rlimit_core) { in fpm_unix_init_main()
461 …r.rlim_max = r.rlim_cur = fpm_global_config.rlimit_core == -1 ? (rlim_t) RLIM_INFINITY : (rlim_t) in fpm_unix_init_main()
464 …system limits or decrease rlimit_core. setrlimit(RLIMIT_CORE, %d)", fpm_global_config.rlimit_core); in fpm_unix_init_main()
470 if (fpm_global_config.daemonize) { in fpm_unix_init_main()
559 if (fpm_global_config.process_priority != 64) { in fpm_unix_init_main()
561 if (setpriority(PRIO_PROCESS, 0, fpm_global_config.process_priority) < 0) { in fpm_unix_init_main()
H A Dfpm_conf.h49 extern struct fpm_global_config_s fpm_global_config;
H A Dfpm_process_ctl.c185 timeout = fpm_global_config.process_control_timeout; in fpm_pctl_action_next()

Completed in 21 milliseconds