Linux vps-4302913.novaexata.com.br 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
Apache
: 162.214.88.42 | : 216.73.216.14
166 Domain
7.3.33
wwnova
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
src /
debug /
php-5.6.40 /
sapi /
fpm /
fpm /
[ HOME SHELL ]
Name
Size
Permission
Action
events
[ DIR ]
drwxr-xr-x
fastcgi.c
25.94
KB
-rw-r--r--
fastcgi.h
4.47
KB
-rw-r--r--
fpm.c
2.84
KB
-rw-r--r--
fpm.h
1.13
KB
-rw-r--r--
fpm_arrays.h
1.82
KB
-rw-r--r--
fpm_atomic.h
3.95
KB
-rw-r--r--
fpm_children.c
10.99
KB
-rw-r--r--
fpm_children.h
873
B
-rw-r--r--
fpm_cleanup.c
849
B
-rw-r--r--
fpm_cleanup.h
519
B
-rw-r--r--
fpm_clock.c
2.23
KB
-rw-r--r--
fpm_clock.h
239
B
-rw-r--r--
fpm_conf.c
49.14
KB
-rw-r--r--
fpm_conf.h
2.43
KB
-rw-r--r--
fpm_env.c
5.39
KB
-rw-r--r--
fpm_env.h
491
B
-rw-r--r--
fpm_events.c
11.67
KB
-rw-r--r--
fpm_events.h
1.59
KB
-rw-r--r--
fpm_log.c
11.53
KB
-rw-r--r--
fpm_log.h
300
B
-rw-r--r--
fpm_main.c
62.74
KB
-rw-r--r--
fpm_php.c
6.42
KB
-rw-r--r--
fpm_php.h
1.23
KB
-rw-r--r--
fpm_php_trace.c
3.49
KB
-rw-r--r--
fpm_process_ctl.c
13.65
KB
-rw-r--r--
fpm_process_ctl.h
1.23
KB
-rw-r--r--
fpm_request.c
8.01
KB
-rw-r--r--
fpm_request.h
1.18
KB
-rw-r--r--
fpm_scoreboard.c
7.84
KB
-rw-r--r--
fpm_scoreboard.h
2.5
KB
-rw-r--r--
fpm_shm.c
1.23
KB
-rw-r--r--
fpm_shm.h
263
B
-rw-r--r--
fpm_signals.c
4.72
KB
-rw-r--r--
fpm_signals.h
315
B
-rw-r--r--
fpm_sockets.c
11.39
KB
-rw-r--r--
fpm_sockets.h
1006
B
-rw-r--r--
fpm_status.c
13.7
KB
-rw-r--r--
fpm_status.h
1.03
KB
-rw-r--r--
fpm_stdio.c
7.36
KB
-rw-r--r--
fpm_stdio.h
569
B
-rw-r--r--
fpm_str.h
483
B
-rw-r--r--
fpm_systemd.c
3.11
KB
-rw-r--r--
fpm_systemd.h
275
B
-rw-r--r--
fpm_trace.c
641
B
-rw-r--r--
fpm_trace.h
378
B
-rw-r--r--
fpm_trace_ptrace.c
1.6
KB
-rw-r--r--
fpm_unix.c
19.23
KB
-rw-r--r--
fpm_unix.h
518
B
-rw-r--r--
fpm_worker_pool.c
1.57
KB
-rw-r--r--
fpm_worker_pool.h
1.23
KB
-rw-r--r--
zlog.c
4.47
KB
-rw-r--r--
zlog.h
978
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : fpm_systemd.c
#include "fpm_config.h" #include <sys/types.h> #include <systemd/sd-daemon.h> #include "fpm.h" #include "fpm_clock.h" #include "fpm_worker_pool.h" #include "fpm_scoreboard.h" #include "zlog.h" #include "fpm_systemd.h" static void fpm_systemd() /* {{{ */ { static unsigned long int last=0; struct fpm_worker_pool_s *wp; unsigned long int requests=0, slow_req=0; int active=0, idle=0; for (wp = fpm_worker_all_pools; wp; wp = wp->next) { if (wp->scoreboard) { active += wp->scoreboard->active; idle += wp->scoreboard->idle; requests += wp->scoreboard->requests; slow_req += wp->scoreboard->slow_rq; } } /* zlog(ZLOG_DEBUG, "systemd %s (Processes active:%d, idle:%d, Requests:%lu, slow:%lu, Traffic:%.3greq/sec)", fpm_global_config.systemd_watchdog ? "watchdog" : "heartbeat", active, idle, requests, slow_req, ((float)requests - last) * 1000.0 / fpm_global_config.systemd_interval); */ if (0 > sd_notifyf(0, "READY=1\n%s" "STATUS=Processes active: %d, idle: %d, Requests: %lu, slow: %lu, Traffic: %.3greq/sec", fpm_global_config.systemd_watchdog ? "WATCHDOG=1\n" : "", active, idle, requests, slow_req, ((float)requests - last) * 1000.0 / fpm_global_config.systemd_interval)) { zlog(ZLOG_NOTICE, "failed to notify status to systemd"); } last = requests; } /* }}} */ void fpm_systemd_heartbeat(struct fpm_event_s *ev, short which, void *arg) /* {{{ */ { static struct fpm_event_s heartbeat; if (fpm_globals.parent_pid != getpid()) { return; /* sanity check */ } if (which == FPM_EV_TIMEOUT) { fpm_systemd(); return; } if (0 > sd_notifyf(0, "READY=1\n" "STATUS=Ready to handle connections\n" "MAINPID=%lu", (unsigned long) getpid())) { zlog(ZLOG_WARNING, "failed to notify start to systemd"); } else { zlog(ZLOG_DEBUG, "have notify start to systemd"); } /* first call without setting which to initialize the timer */ if (fpm_global_config.systemd_interval > 0) { fpm_event_set_timer(&heartbeat, FPM_EV_PERSIST, &fpm_systemd_heartbeat, NULL); fpm_event_add(&heartbeat, fpm_global_config.systemd_interval); zlog(ZLOG_NOTICE, "systemd monitor interval set to %dms", fpm_global_config.systemd_interval); } else { zlog(ZLOG_NOTICE, "systemd monitor disabled"); } } /* }}} */ int fpm_systemd_conf() /* {{{ */ { char *watchdog; int interval = 0; watchdog = getenv("WATCHDOG_USEC"); if (watchdog) { /* usec to msec, and half the configured delay */ interval = (int)(atol(watchdog) / 2000L); zlog(ZLOG_DEBUG, "WATCHDOG_USEC=%s, interval=%d", watchdog, interval); } if (interval > 1000) { if (fpm_global_config.systemd_interval > 0) { zlog(ZLOG_WARNING, "systemd_interval option ignored"); } zlog(ZLOG_NOTICE, "systemd watchdog configured to %.3gsec", (float)interval / 1000.0); fpm_global_config.systemd_watchdog = 1; fpm_global_config.systemd_interval = interval; } else if (fpm_global_config.systemd_interval < 0) { /* not set => default value */ fpm_global_config.systemd_interval = FPM_SYSTEMD_DEFAULT_HEARTBEAT; } else { /* sec to msec */ fpm_global_config.systemd_interval *= 1000; } return 0; } /* }}} */
Close