From 12c77e1253e67a9b176824937487294c3238c592 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Sun, 1 Jul 2018 10:33:14 +0000 Subject: update Makefile --- Makefile | 8 ++++---- src/pamldapd.go | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cd9c983..0093c01 100644 --- a/Makefile +++ b/Makefile @@ -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) } } -- cgit v1.2.3