Set 'daemon' parm to default to false
This commit is contained in:
parent
e2bc287a0f
commit
0a0abf5698
@ -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()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user