zlog(ZLOG_NOTICE, "Reloading in progress ...");
fpm_pctl(FPM_PCTL_STATE_RELOADING, FPM_PCTL_ACTION_SET);
break;
+ case 'H' : /* SIGHUP */
+ zlog(ZLOG_DEBUG, "received SIGHUP");
+ zlog(ZLOG_NOTICE, "Reloading in progress ...");
+ fpm_pctl(FPM_PCTL_STATE_RELOADING, FPM_PCTL_ACTION_SET);
+ break;
}
if (fpm_globals.is_child) {
[SIGINT] = 'I',
[SIGUSR1] = '1',
[SIGUSR2] = '2',
+ [SIGHUP] = 'H',
[SIGQUIT] = 'Q',
[SIGCHLD] = 'C'
};
0 > sigaction(SIGINT, &act, 0) ||
0 > sigaction(SIGUSR1, &act, 0) ||
0 > sigaction(SIGUSR2, &act, 0) ||
+ 0 > sigaction(SIGHUP, &act, 0) ||
0 > sigaction(SIGCHLD, &act, 0) ||
0 > sigaction(SIGQUIT, &act, 0)) {
0 > sigaction(SIGINT, &act_dfl, 0) ||
0 > sigaction(SIGUSR1, &act_dfl, 0) ||
0 > sigaction(SIGUSR2, &act_dfl, 0) ||
+ 0 > sigaction(SIGHUP, &act_dfl, 0) ||
0 > sigaction(SIGCHLD, &act_dfl, 0) ||
0 > sigaction(SIGQUIT, &act, 0)) {
.TP
.B SIGUSR1 \fPre-open log file
.TP
-.B SIGUSR2 \fPgraceful reload of all workers + reload of fpm conf/binary
+.B SIGUSR2,SIGHUP \fPgraceful reload of all workers + reload of fpm conf/binary
.RE
.PD 1
.P