[meta-oe] php: use /run instead /var/run in systemd service file

Submitted by Qi.Chen@windriver.com on Oct. 16, 2020, 6:17 a.m. | Patch ID: 177283

Details

Message ID 20201016061747.40695-1-Qi.Chen@windriver.com
State Accepted
Commit 75d7f48c66c1c6816b31baccadb81fca978835a1
Headers show

Commit Message

Qi.Chen@windriver.com Oct. 16, 2020, 6:17 a.m.
/var/run has been deprecated by systemd, so use /run instead,
as suggested by systemd.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta-oe/recipes-devtools/php/php/php-fpm.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-devtools/php/php/php-fpm.service b/meta-oe/recipes-devtools/php/php/php-fpm.service
index ac79dc931..eec76fb56 100644
--- a/meta-oe/recipes-devtools/php/php/php-fpm.service
+++ b/meta-oe/recipes-devtools/php/php/php-fpm.service
@@ -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]