2022-06-18 02:40:06 -04:00
|
|
|
# It's not recommended to modify this file in-place, because it
|
|
|
|
|
# will be overwritten during upgrades. If you want to customize,
|
|
|
|
|
# the best way is to use the "systemctl edit" command.
|
2023-09-29 07:53:58 -04:00
|
|
|
# systemctl daemon-reload
|
2022-06-18 02:40:06 -04:00
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=The PHP {$VERSION} FastCGI Process Manager
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
2023-06-29 06:29:39 -04:00
|
|
|
Environment="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/www/server/lib/icu/lib"
|
2022-07-05 22:27:24 -04:00
|
|
|
PIDFile={$SERVER_PATH}/php/{$VERSION}/var/run/php-fpm.pid
|
2022-07-05 23:02:29 -04:00
|
|
|
ExecStart={$SERVER_PATH}/php/{$VERSION}/sbin/php-fpm --nodaemonize --fpm-config {$SERVER_PATH}/php/{$VERSION}/etc/php-fpm.conf
|
2022-07-05 22:27:24 -04:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
2022-06-19 00:08:37 -04:00
|
|
|
PrivateTmp=false
|
2022-06-18 02:40:06 -04:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|