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 ( import (
"fmt" "fmt"
"github.com/VividCortex/godaemon"
"gopkg.in/alecthomas/kingpin.v2"
"log" "log"
"net/http" "net/http"
"net/http/httputil" "net/http/httputil"
"os" "os"
"github.com/VividCortex/godaemon"
"gopkg.in/alecthomas/kingpin.v2"
) )
var ( var (
@ -18,7 +19,7 @@ var (
var ( var (
logFileLoc = kingpin.Flag("log", "Location of the log file").Default("stdout").String() 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() 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() bindAddr = kingpin.Flag("bind", "Bind address").Short('b').Default(":80").String()
) )