1
0

Remove unix socket file on exit.

This commit is contained in:
Alexander Andreev 2022-02-14 19:02:57 +04:00
parent 5c6fe3f867
commit 7cb312f5b9
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -121,6 +121,11 @@ func main() {
if err := srv.Stop(); err != nil {
logErr.Fatalln(err)
}
if nt, addr := config.SplitNetworkAddress(); nt == "unix" {
os.Remove(addr)
}
closeSignal <- true
case <-uploadDirNotify:
sz, err := utils.DirectorySize(config.Uploads.Directory)