From b3b428ddbd371c70733afa6752b8d4880e76fd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Sun, 16 Feb 2020 13:10:02 +0000 Subject: drun can execute more complex commands, e.g. small shell scripts --- internal/config/common.go | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'internal/config') diff --git a/internal/config/common.go b/internal/config/common.go index 8c07710..f0f1a94 100644 --- a/internal/config/common.go +++ b/internal/config/common.go @@ -2,27 +2,19 @@ package config // CommonConfig stores configuration keys shared by DTail server and client. type CommonConfig struct { - // The SSH server port number. - SSHPort int - // Enable experimental features. + SSHPort int ExperimentalFeaturesEnable bool `json:",omitempty"` - // Enable extra debug logging (used for deevlopment or debugging purpes only). - DebugEnable bool `json:",omitempty"` - // Enable extra trace logging (used for deevlopment or debugging purpes only). - TraceEnable bool `json:",omitempty"` + DebugEnable bool `json:",omitempty"` + TraceEnable bool `json:",omitempty"` // 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 - // The log directory - LogDir string - // The cache directory - CacheDir string - // Do we want to enable pperf http server? - PProfEnable bool `json:",omitempty"` - // The HTTP port used by PProf - PProfPort int `json:",omitempty"` - // The PProf HTTP server bind address + LogStrategy string + LogDir string + CacheDir string + TmpDir string `json:",omitempty"` + PProfEnable bool `json:",omitempty"` + PProfPort int `json:",omitempty"` PProfBindAddress string `json:",omitempty"` } @@ -35,6 +27,7 @@ func newDefaultCommonConfig() *CommonConfig { ExperimentalFeaturesEnable: false, LogDir: "log", CacheDir: "cache", + TmpDir: "/tmp", PProfEnable: false, PProfPort: 6060, PProfBindAddress: "0.0.0.0", -- cgit v1.2.3