mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-25 23:01:38 +00:00
Update output
This commit is contained in:
parent
8f66d5b8dd
commit
c940bae9e3
@ -404,7 +404,7 @@ func (a *admin) listen() {
|
|||||||
if _, err := os.Stat(a.listenaddr[7:]); err == nil {
|
if _, err := os.Stat(a.listenaddr[7:]); err == nil {
|
||||||
a.core.log.Debugln("Admin socket", a.listenaddr[7:], "already exists, trying to clean up")
|
a.core.log.Debugln("Admin socket", a.listenaddr[7:], "already exists, trying to clean up")
|
||||||
if _, err := net.Dial("unix", a.listenaddr[7:]); err == nil {
|
if _, err := net.Dial("unix", a.listenaddr[7:]); err == nil {
|
||||||
a.core.log.Errorln("Admin socket", a.listenaddr[7:], "is already in use by another process")
|
a.core.log.Errorln("Admin socket", a.listenaddr[7:], "already exists and is in use by another process")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
} else {
|
} else {
|
||||||
if err := os.Remove(a.listenaddr[7:]); err == nil {
|
if err := os.Remove(a.listenaddr[7:]); err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user