#795: Updates aus der WebUI ueber den Instanzmanager
Das Update-Angebot gab es nur im Desktop-Fenster. Der Manager prueft jetzt selbst und spielt ein: erst alle Instanzen geordnet anhalten, dann - ohne systemd: update-agent mit --wait-for-pid und --restart, - unter systemd: clawddotnet-update.service anstossen (Vorlage unter deploy/systemd), damit der agent keinen zweiten Manager neben dem Dienst startet (DC SETUP_INTEGRATION_GUIDE 4A). Fehlt die Unit, wird nichts angehalten; scheitert die Uebergabe, kommen die Instanzen wieder hoch. Anleitung in InstanceSetupGuide Abschnitt 8. Nebenbei: Sprachpaket wird vor dem Kopf geladen (rohe Schluessel im Kopf). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4e41fc12d7
commit
d4b7f34200
@@ -0,0 +1,31 @@
|
||||
# ClawdDotNet instance manager as a systemd user service (#795).
|
||||
#
|
||||
# Install (as the user that runs ClawdDotNet):
|
||||
# cp clawddotnet-manager.service ~/.config/systemd/user/
|
||||
# # adjust the paths below to your installation directory
|
||||
# systemctl --user daemon-reload
|
||||
# systemctl --user enable --now clawddotnet-manager.service
|
||||
# loginctl enable-linger "$USER" # keeps it running without a login session
|
||||
#
|
||||
# KillMode=process: stopping the service stops the manager, not the instances it started.
|
||||
# The manager stops them itself when that is wanted (before an update, for example);
|
||||
# a restart of the manager alone takes them over again.
|
||||
|
||||
[Unit]
|
||||
Description=ClawdDotNet instance manager
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=%h/clawddotnet
|
||||
ExecStart=%h/clawddotnet/ClawdDotNet.Instanzmanager
|
||||
Restart=on-failure
|
||||
RestartSec=15
|
||||
KillMode=process
|
||||
# The console output carries the web access token on an interactive console only;
|
||||
# the journal never gets it, but there is nothing else in it worth keeping.
|
||||
StandardOutput=null
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user