Remove unix socket file on exit.
This commit is contained in:
parent
5c6fe3f867
commit
7cb312f5b9
@ -121,6 +121,11 @@ func main() {
|
|||||||
if err := srv.Stop(); err != nil {
|
if err := srv.Stop(); err != nil {
|
||||||
logErr.Fatalln(err)
|
logErr.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if nt, addr := config.SplitNetworkAddress(); nt == "unix" {
|
||||||
|
os.Remove(addr)
|
||||||
|
}
|
||||||
|
|
||||||
closeSignal <- true
|
closeSignal <- true
|
||||||
case <-uploadDirNotify:
|
case <-uploadDirNotify:
|
||||||
sz, err := utils.DirectorySize(config.Uploads.Directory)
|
sz, err := utils.DirectorySize(config.Uploads.Directory)
|
||||||
|
Loading…
Reference in New Issue
Block a user