From e0f4ccc46c8601f322640b72e100f973a837ef02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Sun, 16 Feb 2020 18:07:36 +0000 Subject: server kills subprocesses correctly on cancel --- internal/config/common.go | 14 ++++---------- internal/config/config.go | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'internal/config') diff --git a/internal/config/common.go b/internal/config/common.go index f0f1a94..a09a3ad 100644 --- a/internal/config/common.go +++ b/internal/config/common.go @@ -9,13 +9,10 @@ type CommonConfig struct { // The log strategy to use, one of // stdout: only log to stdout (useful when used with systemd) // daily: create a log file for every day - LogStrategy string - LogDir string - CacheDir string - TmpDir string `json:",omitempty"` - PProfEnable bool `json:",omitempty"` - PProfPort int `json:",omitempty"` - PProfBindAddress string `json:",omitempty"` + LogStrategy string + LogDir string + CacheDir string + TmpDir string `json:",omitempty"` } // Create a new default configuration. @@ -28,8 +25,5 @@ func newDefaultCommonConfig() *CommonConfig { LogDir: "log", CacheDir: "cache", TmpDir: "/tmp", - PProfEnable: false, - PProfPort: 6060, - PProfBindAddress: "0.0.0.0", } } diff --git a/internal/config/config.go b/internal/config/config.go index 239bfd1..7241276 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -9,7 +9,7 @@ import ( // ControlUser is used for various DTail specific operations. const ControlUser string = "DTAIL-CONTROL-USER" -// ScheduledUser is used for scheduled queries. +// ScheduleUser is used for scheduled queries. const ScheduleUser string = "DTAIL-SCHEDULE-USER" // Client holds a DTail client configuration. -- cgit v1.2.3