Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • deploy/MULTI-INSTANCE.md

    r12bed59 r2d38b22  
    8484because the port comes from the same `.env`.
    8585
    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.
     87Masked because `disable` alone does not stop `systemctl restart klonkt` from
     88starting it again, and a resurrected unit no longer finds its `.env` (that moved
     89with the data): it would fall back to the defaults and write a fresh empty
     90database into the checkout. To go back, move the data into `/opt/klonkt/storage`,
     91restore the relative paths in `.env`, then `systemctl unmask klonkt` and
     92`systemctl enable --now klonkt`.
    10393
    10494## Adding an instance
     
    195185Then remove its block from the web server config and reload it.
    196186
     187## Hosting for other people
     188
     189Everything here is about the machine. The moment an instance belongs to someone
     190who is not you, there is a second set of questions — what you are holding, what
     191you owe them, and how they leave. See [HOSTING.md](HOSTING.md).
     192
    197193## Everyday commands
    198194
Note: See TracChangeset for help on using the changeset viewer.