Service Startup and Verification

Start Service

Execute the following command to start the Origin PilotOS image service and background upgrade service:

sudo python3 AutoDeploy.py start

Startup Notes:

  • The script will first check if the configured MySQL and MongoDB can be connected correctly. If the connection fails, a prompt will appear in the command line, and the startup process will halt.

  • Before each startup, he script automatically checks if the service is already running. If it exists, it will not be started repeatedly.

Stop Service

To stop the Origin PilotOS service, you need to stop the image service and the upgrade service. Note: Stopping the image container will delete the modifications you made in the image!

Stop the image service: Execute the following command in the pilotos folder:

sudo docker compose down

Stop the upgrade service: Since the upgrade service runs as a daemon process in the background, you need to get the process ID before killing the service.

ps aux | grep AutoDeploy.py
sudo kill <process_id>

Shutdown Notes:

  • Terminating the upgrade service instructions: If you need to shut down the upgrade service under special circumstances, you must use sudo kill to kill the process. Do not use kill -9.

  • Using kill -9 will cause the /var/run/autodeploy_upgrade.pid file to not be deleted, which will cause the next startup to fail. The upgrade service can only start normally when this PID file does not exist.

Verification Access

After the service starts successfully, you can test it by accessing the management terminal through a browser:

  • Access address: http://<server_ip>:10020

Administrator account: Username: admin Password: admin123

If you encounter any issues, refer to the subsequent chapters.