Set 'daemon' parm to default to false

This commit is contained in:
Brian Buller 2016-05-09 10:30:16 -05:00
parent e2bc287a0f
commit 0a0abf5698

View File

@ -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()
)