diff mbox series

[meta-webserver] sthttpd: Fix service unit file

Message ID 20250227100909.257307-1-alexis.cellier@smile.fr
State Accepted
Headers show
Series [meta-webserver] sthttpd: Fix service unit file | expand

Commit Message

Alexis Cellier Feb. 27, 2025, 10:09 a.m. UTC
Update PID file path from /var/run to /run to avoid systemd warning:
    PIDFile= references a path below legacy directory /var/run/,
    updating /var/run/thttpd.pid → /run/thttpd.pid; please update
    the unit file accordingly.

Cc: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Alexis Cellier <alexis.cellier@smile.fr>
---
 meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service b/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service
index f1095007c..f181f30ab 100644
--- a/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service
+++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service
@@ -3,8 +3,8 @@  Description=Tiny/Turbo/Throttling Web Server
 
 [Service]
 Type=forking
-ExecStart=/usr/sbin/thttpd -C @@CONFFILE -c cgi-bin/* -i /var/run/thttpd.pid
-PIDFile=/var/run/thttpd.pid
+ExecStart=/usr/sbin/thttpd -C @@CONFFILE -c cgi-bin/* -i /run/thttpd.pid
+PIDFile=/run/thttpd.pid
 
 [Install]
 WantedBy=multi-user.target