mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
0e99329e0a
systemd_interval option to configure this. The service can now use Type=notify in the systemd unit file. Systemd status line will looks like: Status: "Processes active: 0, idle: 5, Requests: 90, slow: 0, Traffic: 10req/sec" Watchdog mode is also supported. In this case watchdog interval, configured in the unit file, override the systemd_interval option. When not used (default), no change from previous version.
14 lines
316 B
SYSTEMD
14 lines
316 B
SYSTEMD
[Unit]
|
|
Description=The PHP FastCGI Process Manager
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=@php_fpm_systemd@
|
|
PIDFile=@localstatedir@/run/php-fpm.pid
|
|
ExecStart=@sbindir@/php-fpm --nodaemonize --fpm-config @sysconfdir@/php-fpm.conf
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|