You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
// Create the socket to listen on:l, err:=net.Listen(socketType, socketAddr)
iferr!=nil {
log.Fatal(err)
return
}
// Unix sockets must be unlink()ed before being reused again.// Handle common process-killing signals so we can gracefully shut down:sigc:=make(chan os.Signal, 1)
signal.Notify(sigc, os.Interrupt, os.Kill, syscall.SIGTERM)
gofunc(cchan os.Signal) {
// Wait for a SIGINT or SIGKILL:sig:=<-clog.Printf("Caught signal %s: shutting down.", sig)
// Stop listening (and unlink the socket if unix type):l.Close()
// And we're done:os.Exit(0)
}(sigc)
// Start the HTTP server:log.Fatal(http.Serve(l, http.HandlerFunc(indexHtml)))
The text was updated successfully, but these errors were encountered:
First start
Second launch after ending the process with
ctrl + c
commandMust be execute
rm -rf /run/ui-ssh-webdav.socket
command to resolve it.config.yaml
Hope the following information can help you
https://stackoverflow.com/questions/16681944/how-to-reliably-unlink-a-unix-domain-socket-in-go-programming-language
The text was updated successfully, but these errors were encountered: