From 0a0abf5698a114745a02502f661050f7c8576c0d Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Mon, 9 May 2016 10:30:16 -0500 Subject: [PATCH] Set 'daemon' parm to default to false --- hostsplitter.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() )