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
+2
View File
@@ -105,9 +105,11 @@ Available Commands:
start Quick start service and configure DNS on interface
stop Quick stop service and remove DNS from interface
restart Restart the ctrld service
reload Reload the ctrld service
status Show status of the ctrld service
uninstall Stop and uninstall the ctrld service
clients Manage clients
upgrade Upgrading ctrld to latest version
Flags:
-h, --help help for ctrld