cmd/cli: change "ctrld start" behavior

Without reading the documentation, users may think that "ctrld start"
will just start ctrld service. However, this is not the case, and may
lead to unexpected result from user's point of view.

This commit changes "ctrld start" to just start already installed ctrld
service, so users won't lost what they did installed before. If there
are any arguments specified, performing the current behavior.
This commit is contained in:
Cuong Manh Le
2024-07-30 19:00:53 +07:00
committed by Cuong Manh Le
parent c233ad9b1b
commit 3b71d26cf3
3 changed files with 66 additions and 3 deletions
+1
View File
@@ -37,6 +37,7 @@ var (
deactivationPin int64
skipSelfChecks bool
cleanup bool
startOnly bool
mainLog atomic.Pointer[zerolog.Logger]
consoleWriter zerolog.ConsoleWriter