The Cloud Assistant client is an agent that runs Cloud Assistant commands on Elastic Compute Service (ECS) instances. This topic describes how to start or stop the Cloud Assistant client.

Start or stop the Cloud Assistant client on a Windows instance

To start or stop the Cloud Assistant client on a Windows instance, perform the following steps.
Warning Aliyun Assist Service is the process of the Cloud Assistant client. If you stop Aliyun Assist Service, the Cloud Assistant client also stops. This may cause an exception on the instance, and the instance cannot be stopped in the ECS console. Proceed with caution when you stop Aliyun Assist Service.
  1. Connect to the Windows instance. For more information, see Connect to a Windows instance by using a username and password.
  2. Click Start and choose Windows Administrative Tools > Computer Management.
  3. Choose Computer Management (Local) > Services and Applications > Services.
  4. Find Aliyun Assist Service and click Stop the service or Restart the service.
    Restart the service

Uninstall the Cloud Assistant daemon process from a Linux instance

The Cloud Assistant daemon process is used to monitor the resource consumption of the Cloud Assistant client, report the running status of the client, and restart the client when the client fails. Before you stop the Cloud Assistant client, you must first uninstall the Cloud Assistant daemon process.
Note The Cloud Assistant daemon process is available only for Linux instances.
  1. Connect to the Linux instance. For more information, see Connect to a Linux instance by using a password.
  2. Stop the Cloud Assistant daemon process.
    /usr/local/share/assist-daemon/assist_daemon --stop
    Note In the preceding command, /usr/local/share/assist-daemon/assist_daemon specifies the default path of the Cloud Assistant daemon process.
  3. Uninstall the Cloud Assistant daemon process.
    /usr/local/share/assist-daemon/assist_daemon --delete
  4. Delete the directory of the Cloud Assistant daemon process.
    rm -rf /usr/local/share/assist-daemon

Start or stop the Cloud Assistant client on a Linux instance

Note Before you stop the Cloud Assistant client, you must first uninstall the Cloud Assistant daemon process. For more information, see Uninstall the Cloud Assistant daemon process from a Linux instance.

To start or stop the Cloud Assistant client on a Linux instance, perform the following steps:

  1. Connect to the Linux instance. For more information, see Connect to a Linux instance by using a password.
  2. Run the following commands based on the initialization process of the Linux instance.
    • Linux operating systems that are based on new versions of the Linux kernel typically use the systemd initialization process. Perform the following steps:
      • Check whether the instance uses the systemd initialization process. If the instance uses systemd, a command output is displayed.
        strings /sbin/init | grep "/lib/system"
      • Stop the Cloud Assistant client.
        systemctl stop aliyun.service
      • Start the Cloud Assistant client.
        systemctl start aliyun.service
      • Restart the Cloud Assistant client.
        systemctl restart aliyun.service
    • Ubuntu 14 and earlier operating systems typically use the UpStart initialization process. Perform the following steps:
      • Check whether the instance uses the UpStart initialization process. If the instance uses UpStart, a command output is displayed.
        strings /sbin/init | grep "upstart"
      • Stop the Cloud Assistant client.
        /sbin/initctl stop aliyun-service
      • Start the Cloud Assistant client.
        /sbin/initctl start aliyun-service
      • Restart the Cloud Assistant client.
        /sbin/initctl restart aliyun-service
    • Linux operating systems that are based on earlier versions of the Linux kernel typically use the sysvinit initialization process. Perform the following steps:
      • Check whether the instance uses the sysvinit initialization process. If the instance uses sysvinit, a command output is displayed.
        strings /sbin/init | grep "sysvinit"
      • Stop the Cloud Assistant client.
        /etc/init.d/aliyun-service stop
      • Start the Cloud Assistant client.
        /etc/init.d/aliyun-service start
      • Restart the Cloud Assistant client.
        /etc/init.d/aliyun-service restart