As an experienced operator of Anqi CMS, I know the importance of system upgrades in maintaining website security and advanced features.When performing AnQiCMS upgrade operations, many users may have a core question: Will the old program process identifier (PID) be automatically updated after the upgrade?Or do we need to intervene manually?

When upgrading the AnQiCMS system, it is usually necessary to download and replace the old executable files, or update the program files through the background online update feature.However, the running program instance (i.e., the old process) will not automatically detect that the underlying executable file has been updated.The operating system knows that only one process is running a specific file.To make the new program logic take effect, the old process must be terminated, and then the new, updated executable file can be started to generate a new process and a new PID.Therefore, the answer is clear: After AnQiCMS is upgraded, the PID of the old process will not be automatically updated, but needs to be terminated manually or semi-automatically to start a new process, which naturally leads to the release of the old PID and the allocation of a new PID.

This process management method requires operators to make clear interventions during the upgrade process.Whether through the command line, Baota panel, Docker management tool, or other methods, the core steps are to "stopThis ensures that the latest version of AnQiCMS code is running on the website.

Under Linux server environment, AnQiCMS is usually recommended to usestart.shandstop.shscripts to manage processes. Among them,start.shThe design logic of the script is to check if AnQiCMS is running, if not, it will start it. It does not have the ability to restart a running process.stop.sh脚本则明确地通过kill -9命令终止现有进程,从而释放其PID。因此,在升级场景下,标准的做法是先执行stop.shTerminate the running AnQiCMS process, and then execute after the program files are updated.start.shStart a new AnQiCMS process.


Common Questions (FAQ)

Q: Why does AnQiCMS not support 'hot update' or automatic restart like some other services?A: AnQiCMS as an independent binary file compiled in Go language runs, its design pattern determines that the program cannot replace its core code by itself.To load new program logic, the current running instance must be terminated and a new instance containing updated code must be started. This is a common deployment pattern for Go applications, aimed at simplifying deployment and avoiding complex runtime code replacement mechanisms.

Q: What will happen if I do not manually restart AnQiCMS after the upgrade?

Q: Is manually handling PID updates by stopping and then starting the Go project feature in the Baota panel considered manual processing?