- Timestamp:
- 08/07/2026 04:14:49 PM (5 weeks ago)
- Branches:
- main
- Children:
- f85b2c3
- Parents:
- fa33214
- git-author:
- Robin <roboburr@…> (07/31/2026 02:52:19 PM)
- git-committer:
- Robin <roboburr@…> (08/07/2026 04:14:49 PM)
- File:
-
- 1 edited
-
deploy/MULTI-INSTANCE.md (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
deploy/MULTI-INSTANCE.md
rfa33214 r12bed59 84 84 because the port comes from the same `.env`. 85 85 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`. 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 ``` 93 103 94 104 ## Adding an instance
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)