The miniserv.conf file is not properly cleaned up after virtual server is deleted

Webmin was down on one of our servers and attempt to restart it from CLI gave:

service webmin restart
Stopping Webmin server in /usr/libexec/webmin
/etc/webmin/stop: line 4: kill: (22801) - No such process
Starting Webmin server in /usr/libexec/webmin
Failed to open SSL key /home/somesite/ssl.key at /usr/libexec/webmin/miniserv.pl line 4434.

which was a surprise to see, because the website somesite.com had been deleted quite some time ago. Anyway, I had to open the /etc/webmin/miniserv.conf file and delete the following lines:

ipkey_somesite.com,*.somesite.com=/home/somesite/ssl.key
ipcert_somesite.com,*.somesite.com=/home/somesite/ssl.cert

and then only Webmin came up.

Status: 
Fixed (pending)

Comments

Status:
Active
»
Fixed (pending)

I had a look at the code, and I found a situation in which this could happen - I'll fix it in the next Virtualmin release.