1--TEST--
2FPM: bug68442 - Signal reload
3--SKIPIF--
4<?php include "skipif.inc"; ?>
5--FILE--
6<?php
7
8require_once "tester.inc";
9
10$cfg = <<<EOT
11[global]
12error_log = {{FILE:LOG}}
13pid = {{FILE:PID}}
14[unconfined]
15listen = {{ADDR}}
16ping.path = /ping
17ping.response = pong
18pm = dynamic
19pm.max_children = 5
20pm.start_servers = 1
21pm.min_spare_servers = 1
22pm.max_spare_servers = 3
23EOT;
24
25$tester = new FPM\Tester($cfg);
26$tester->start();
27$tester->expectLogStartNotices();
28$tester->ping('{{ADDR}}');
29$tester->signal('USR2');
30$tester->expectLogNotice('Reloading in progress ...');
31$tester->expectLogNotice('reloading: .*');
32$tester->expectLogNotice('using inherited socket fd=\d+, "127.0.0.1:\d+"');
33$tester->expectLogStartNotices();
34$tester->ping('{{ADDR}}');
35$tester->terminate();
36$tester->expectLogTerminatingNotices();
37$tester->close();
38
39?>
40Done
41--EXPECT--
42Done
43--CLEAN--
44<?php
45require_once "tester.inc";
46FPM\Tester::clean();
47?>
48