Package: mini-httpd Version: 1.23-1.2 I am having issues with 'service mini-httpd stop'. The sysv-style script in /etc/init.d loses track of the httpd pidfile, and so fails to stop a running process. This also prevents 'service mini-httpd restart' from working.
I have looked over the file /etc/init.d/mini-httpd and found that the error seems to be several mismatches between spelling of "mini-httpd" and "mini_httpd". For example, PIDFILE is specified as PIDFILE=/var/run/mini_httpd.pid or NAME=mini_httpd ... if [ -e /var/run/$NAME.pid ] But, /etc/mini-httpd.conf has: # Which pidfile to use? pidfile=/var/run/mini-httpd.pid I can correct this issue by fixing /etc/mini-httpd.conf to create pidfile with an underscore - but the deeper problem is simply inconsistency throughout the package as to what to name the file / program / service / etc. This needs to be standardized everywhere. Other info follows. Linux raspberrypi 4.9.80+ #1098 Fri Mar 9 18:51:28 GMT 2018 armv6l GNU/Linux libc6 Version 2.24-11+deb9u3