diff options
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | src/pamldapd.go | 3 |
2 files changed, 6 insertions, 5 deletions
@@ -1,9 +1,9 @@ .DEFAULT_GOAL := default -all: x86-64 i386 -default: x86-64 -x86-64: x86-64.build -i386: i386.build +all: pamldapd-x86-64 pamldapd-i386 +default: pamldapd-x86-64 +pamldapd-x86-64: x86-64.build Dockerfile_x86-64 +pamldapd-i386: i386.build Dockerfile_i386 %.build: src/pamldapd.go @echo BUILD ARCH $(shell basename $@ .build) docker build -t pamldapd-build-$(shell basename $@ .build)-tmp -f Dockerfile_$(shell basename $@ .build) . diff --git a/src/pamldapd.go b/src/pamldapd.go index b43797b..9715ca1 100644 --- a/src/pamldapd.go +++ b/src/pamldapd.go @@ -76,7 +76,8 @@ func main() { l.CloseFunc("", backend) backend.logger.Printf("LDAP server listen: %s", backend.Listen) if err := l.ListenAndServe(backend.Listen); err != nil { - backend.logger.Fatalf("LDAP server listen failed: %s", err.Error()) + backend.logger.Printf("LDAP server listen failed: %s", err.Error()) + os.Exit(1) } } |