From b55355121e0ed259097254447f16739b0f3da61d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 28 Aug 2015 20:43:12 -0600 Subject: implement hackers_watch --- src/nshd/main.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/nshd/main.go') diff --git a/src/nshd/main.go b/src/nshd/main.go index d31160f..ac49eaa 100644 --- a/src/nshd/main.go +++ b/src/nshd/main.go @@ -3,9 +3,16 @@ package main import ( "nshd/hackers_git" "nslcd_systemd" + "os" ) func main() { - backend := hackers_git.NewHackers("/var/cache/parabola-hackers/users") - nslcd_systemd.Main(backend) + config := hackers_git.Config{ + Pam_password_prohibit_message: "", + Yamldir: "/var/cache/parabola-hackers/users", + } + backend := hackers_git.NewHackers(config) + ret := nslcd_systemd.Main(backend) + backend.Close() + os.Exit(ret) } -- cgit v1.2.3-54-g00ecf