Skip to contentSkip to conversation

php: use /run instead /var/run in systemd service file

PATCH New Chen Qi 1 participant 1 message Oct 16, 2020

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 php: use /run instead /var/run in systemd service file

/var/run has been deprecated by systemd, so use /run instead, as suggested by systemd.

---
 meta-oe/recipes-devtools/php/php/php-fpm.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/php/php/php-fpm.service +1 -1
index ac79dc931..eec76fb56 100644
@@ -3,7 +3,7 @@ Description=PHP-FPM
 After=network.target
 [Service]
 Type=forking
-PIDFile=@LOCALSTATEDIR@/run/php-fpm.pid
+PIDFile=/run/php-fpm.pid
 ExecStart=@SYSCONFDIR@/init.d/php-fpm start
 ExecStop=@SYSCONFDIR@/init.d/php-fpm stop
 [Install]
Signature · 1 line
2.17.1