浏览代码

Update upgrade.md +binary info (#1613)

MaximilianKohler 1 年之前
父节点
当前提交
95dabe593b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/docs/content/upgrade.md

+ 4 - 0
docs/docs/content/upgrade.md

@@ -7,6 +7,10 @@ Some versions may require changes to the database. These changes or database "mi
 - `./listmonk --upgrade` to upgrade an existing DB. Upgrades are idempotent and running them multiple times have no side effects.
 - `./listmonk --upgrade` to upgrade an existing DB. Upgrades are idempotent and running them multiple times have no side effects.
 - Run `./listmonk` and visit `http://localhost:9000`.
 - Run `./listmonk` and visit `http://localhost:9000`.
 
 
+If you installed listmonk as a service, you will need to stop it before overwriting the binary. Something like `sudo systemctl stop listmonk` or `sudo service listmonk stop` should work. Then overwrite the binary with the new version, then run `./listmonk --upgrade, and `start` it back with the same commands.
+
+If it's not running as a service, `pkill -9 listmonk` will stop the listmonk process.
+
 ## Docker
 ## Docker
 
 
 - `docker compose pull` to pull the latest version from DockerHub.
 - `docker compose pull` to pull the latest version from DockerHub.