summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-12 19:44:43 -0500
committerJeff Carr <[email protected]>2024-10-12 19:44:43 -0500
commitba61b7863168c03812578d74fbe1e4532eb8b6a5 (patch)
tree8a26d31fe6340b48813c047545c08d0e002b0504 /main.go
parent58ff2a2412837b2e438e745ccf3ffc022d111458 (diff)
add daemon mode
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 0964846..fd3884a 100644
--- a/main.go
+++ b/main.go
@@ -24,6 +24,10 @@ func main() {
os.Exit(0)
}
+ if argv.Daemon {
+ log.DaemonMode(true)
+ }
+
readConfigFile("droplets")
log.Info("create cluser for", argv.Hosts)