* Start a hosted server before the disk restore when a release is ready
After a wake, boat restores the disk lazily for about 3.5 minutes. The
apply unit waited for the restore when a release was staged, so OpenBot
started only after it. The unit now runs `boot`, which skips a staged
release during the restore. OpenBot asks root to stage the release, which
waits for the restore, and installs it when the server is idle and no
client used it for 5 minutes. openbot.service also starts with lightdm,
about 8 seconds before boat starts the other enabled units.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the hosted wake safe after a failed boot and during reading
- `boot` does nothing while OpenBot runs. boat starts the apply unit a
second time after a wake, and a failed `boot` was not active then.
- Self-hosted setup releases the update lock before it starts OpenBot,
because the start runs `boot`, which waits for the lock.
- The automatic install also waits 5 minutes after the start while a
client is connected, because a member who only reads is not in use.
- Remove the `client-use` label: `host-update-v1` sends it as `other`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Let a member's update request replace the automatic schedule
On a hosted server, the automatic schedule waits for client use, also
for the use of the member who asks. Also accept an undefined
`clientInUse` for exactOptionalPropertyTypes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Install OpenBot as a server from a terminal
Add a self-hosted server mode for a Linux computer with no screen.
install-server.sh downloads the latest release, checks it against the
release manifest, and runs the setup file of that release. The setup
uses the install steps of a hosted server, with the mode "self".
Main opens a control socket in the runtime directory of the service
user (0700, socket 0600). The `openbot` command uses it to sign in with
an email code, set the server name, show the status and sign out.
Main checks the server name before it stores it, and the status shows
why a publish failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the sign-in code out of curl arguments, and keep install values
- The openbot command sends the form body to curl on standard input.
Other local users can read process arguments in /proc.
- A reinstall keeps the installed service user and account server when
the options are not given, and refuses another --user. The keyring
and the sign-in belong to them.
- Setup starts openbot-update.timer, so update checks start before the
first reboot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>