summaryrefslogtreecommitdiff
path: root/src/nshd/main.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-08-28 20:43:12 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-28 20:43:12 -0600
commitb55355121e0ed259097254447f16739b0f3da61d (patch)
tree3149a5cfe50952e9a3ea6c9a9e888b3da72dbfff /src/nshd/main.go
parent3c237531f5067340e34b01c7f7ea45fa55c39657 (diff)
implement hackers_watch
Diffstat (limited to 'src/nshd/main.go')
-rw-r--r--src/nshd/main.go11
1 files changed, 9 insertions, 2 deletions
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)
}