diff --git a/hostsplitter.go b/hostsplitter.go index 2a2fc0a..6e213e2 100644 --- a/hostsplitter.go +++ b/hostsplitter.go @@ -2,12 +2,13 @@ package main import ( "fmt" - "github.com/VividCortex/godaemon" - "gopkg.in/alecthomas/kingpin.v2" "log" "net/http" "net/http/httputil" "os" + + "github.com/VividCortex/godaemon" + "gopkg.in/alecthomas/kingpin.v2" ) var ( @@ -18,7 +19,7 @@ var ( var ( logFileLoc = kingpin.Flag("log", "Location of the log file").Default("stdout").String() - daemonize = kingpin.Flag("daemon", "If daemonized, the program will run in the background.").Default("true").Bool() + daemonize = kingpin.Flag("daemon", "If daemonized, the program will run in the background.").Default("false").Bool() sitesLoc = kingpin.Flag("sites_dir", "Location of site files").Short('h').Default("/etc/hostsplitter/").String() bindAddr = kingpin.Flag("bind", "Bind address").Short('b').Default(":80").String() )