Public bug reported: Using mini-httpd package, version 1.23-1, on Ubuntu 16.04 LTS. I am having issues with 'systemctl stop mini-httpd'. 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 'systemctl 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 either 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. -- As an aside, /etc/default/mini-httpd has: START=0 which prevents the service from actually running until changed to 1. This may be by design : ) -- Version info etc. follows. grkenn@ubuntu:/etc/init.d$ apt show mini-httpd Package: mini-httpd Version: 1.23-1 Priority: optional Section: universe/web Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Jose dos Santos Junior <[email protected]> grkenn@ubuntu:/etc/init.d$ lsb_release -rd Description: Ubuntu 16.04.2 LTS Release: 16.04 ** Affects: mini-httpd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1707302 Title: mini-httpd - typo in /etc/init.d/mini-httpd causes start/stop/etc issues To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mini-httpd/+bug/1707302/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
