From 9d333b3e3ede5080858cf8af3a2f9ac02d56e4b8 Mon Sep 17 00:00:00 2001 From: leukipp Date: Sat, 20 May 2023 15:11:16 +0200 Subject: [PATCH] change default lock file path --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7c2a69a..4502e25 100644 --- a/main.go +++ b/main.go @@ -40,13 +40,13 @@ func main() { // Command line arguments flag.StringVar(&args.config, "config", common.ConfigFilePath(), "config file path") - flag.StringVar(&args.lock, "lock", "/run/lock/cortile.lock", "lock file path") + flag.StringVar(&args.lock, "lock", "/tmp/cortile.lock", "lock file path") flag.StringVar(&args.log, "log", "/tmp/cortile.log", "log file path") flag.BoolVar(&args.vvv, "vvv", false, "very very verbose mode") flag.BoolVar(&args.vv, "vv", false, "very verbose mode") flag.BoolVar(&args.v, "v", false, "verbose mode") flag.CommandLine.Usage = func() { - title := fmt.Sprintf("%s %s, built on %s (%s)", os.Args[0], version, date, commit) + title := fmt.Sprintf("cortile v%s, built on %s (%s)", version, date, commit) fmt.Fprintf(flag.CommandLine.Output(), "%s\n\nUsage:\n", title) flag.PrintDefaults() }