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>
32 lines
1.1 KiB
Desktop File
32 lines
1.1 KiB
Desktop File
# 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
|