Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • deploy/MULTI-INSTANCE.md

    r2d38b22 r12bed59  
    8484because the port comes from the same `.env`.
    8585
    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
     87as `klonkt.service.retired-<timestamp>`. Stopping and disabling is not enough:
     88`systemctl restart klonkt` starts a disabled unit anyway, which is exactly what
     89an updater generated before the split does. A resurrected `klonkt.service` no
     90longer finds its `.env` (that moved with the data), falls back to the built-in
     91defaults, and writes a fresh empty database into the checkout. Masking does not
     92work 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
     96paths in `.env`, move the retired unit file back to
     97`/etc/systemd/system/klonkt.service`, then:
     98
     99```bash
     100sudo systemctl daemon-reload
     101sudo systemctl enable --now klonkt
     102```
    93103
    94104## Adding an instance
     
    185195Then remove its block from the web server config and reload it.
    186196
    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 
    193197## Everyday commands
    194198
Note: See TracChangeset for help on using the changeset viewer.