Submitted by ADDISON74 on Mon, 09/28/2015 - 10:35
I just deleted a Virtual Server and I search the disk for files relates to it.
I found a reference here: /etc/webmin/virtual-server/names/mydomain.tld.lock
other references here: /var/webmin/diffs /var/webmin/output
- What are these files?
- Why are these still in file system?
- Is it safe to delete them?
- What else to do for checking if a virtual server is cleaned up completely?
Submitted by andreychek on Mon, 09/28/2015 - 10:43 Comment #1
The output/diffs directories in /var/webmin just contain historical data. Removing a domain doesn't delete all references from log files and such.
The file "/etc/webmin/virtual-server/names/mydomain.tld.lock" is a lock file.
Having that won't harm anything, though in general lock files should only be there while some operation is occurring. If a lock file remains there afterwards, it may be a sign that something went wrong at some point.
You may want to try restarting Webmin, just to make sure it's not holding the lock file open.
If that doesn't delete it, you can certainly manually delete that lock file.
Submitted by JamieCameron on Mon, 09/28/2015 - 20:59 Comment #2
FYI, it seems like a Virtualmin bug that the .lock file is left around after deletion ... I'll fix that.
Submitted by ADDISON74 on Tue, 09/29/2015 - 02:24 Comment #3
Thank you. I restarted a couple of time webmin service and the file is still there. I can delete it manually, but please check the whole delete process of a virtual server for a complete cleanup.