Changes in deploy/MULTI-INSTANCE.md [12bed59:2d38b22] in Klonkt
- File:
-
- 1 edited
-
deploy/MULTI-INSTANCE.md (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
deploy/MULTI-INSTANCE.md
r12bed59 r2d38b22 84 84 because the port comes from the same `.env`. 85 85 86 **The old unit is moved aside, not deleted.** It ends up next to its old place 87 as `klonkt.service.retired-<timestamp>`. Stopping and disabling is not enough: 88 `systemctl restart klonkt` starts a disabled unit anyway, which is exactly what 89 an updater generated before the split does. A resurrected `klonkt.service` no 90 longer finds its `.env` (that moved with the data), falls back to the built-in 91 defaults, and writes a fresh empty database into the checkout. Masking does not 92 work here either, because the unit file sits in `/etc/systemd/system` and 93 `systemctl mask` refuses while a real file is there. 94 95 **Rolling back.** Move the data into `/opt/klonkt/storage`, restore the relative 96 paths in `.env`, move the retired unit file back to 97 `/etc/systemd/system/klonkt.service`, then: 98 99 ```bash 100 sudo systemctl daemon-reload 101 sudo systemctl enable --now klonkt 102 ``` 86 **Rolling back.** The old `klonkt.service` is disabled and masked, not deleted. 87 Masked because `disable` alone does not stop `systemctl restart klonkt` from 88 starting it again, and a resurrected unit no longer finds its `.env` (that moved 89 with the data): it would fall back to the defaults and write a fresh empty 90 database into the checkout. To go back, move the data into `/opt/klonkt/storage`, 91 restore the relative paths in `.env`, then `systemctl unmask klonkt` and 92 `systemctl enable --now klonkt`. 103 93 104 94 ## Adding an instance … … 195 185 Then remove its block from the web server config and reload it. 196 186 187 ## Hosting for other people 188 189 Everything here is about the machine. The moment an instance belongs to someone 190 who is not you, there is a second set of questions — what you are holding, what 191 you owe them, and how they leave. See [HOSTING.md](HOSTING.md). 192 197 193 ## Everyday commands 198 194
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)