sthttpd: Fix service unit file

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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Alexis Cellier 2025-02-27 11:09:09 +01:00 committed by Khem Raj
parent 8dad29ad58
commit 5c32343131
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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