Stop and start Go service
Zerops allows you to stop any service. Stopped services only consume disk.
Stop, start and restart Go service in Zerops GUI​
To stop the Go service in Zerops GUI go to the project dashboard and select the Stop menu item in the top right corner.
// TODO screenshot (show menu with the start and stop items on a service)
To start the stopped Go service choose the Start item from the same menu.
To restart the Go service choose the Restart item from the same menu.
Stop and start Go using zCLI​
zCLI is the Zerops command-line tool. To stop and start the Go service via the command-line, follow these steps:
- Install & setup zCLI
- Run the
zcli service stop
command
Usage:
zcli service stop [serviceIdOrName] [flags]
Flags:
-h, --help the enable Zerops subdomain command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
zCLI commands are interactive, when you press enter after zcli service stop
, you will be given a list of your projects and services to choose from.
- Run the
zcli service start
command
Usage:
zcli service start [{serviceName | serviceId}] [flags]
Flags:
-h, --help the service start command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
--serviceId string If you have access to more than one service, you must specify the service ID for which the
command is to be executed.
zCLI commands are interactive, when you press enter after zcli service start
, you will be given a list of your projects and its services to choose from.