diff --git a/bin/.local/bin/labfy-investigation-web b/bin/.local/bin/labfy-investigation-web deleted file mode 120000 index ec64abea0..000000000 --- a/bin/.local/bin/labfy-investigation-web +++ /dev/null @@ -1 +0,0 @@ -/home/fy59/Documents/Development/labfy-investigation/scripts/labfy-investigation-web \ No newline at end of file diff --git a/docs/shell.md b/docs/shell.md index e7288ea5f..c181b9ed7 100644 --- a/docs/shell.md +++ b/docs/shell.md @@ -80,10 +80,11 @@ Ils restent récupérables sans téléchargement ; supprimer cette archive ultérieurement seulement après vérification de leur inutilité. Les liens cassés `labfy-remote-ui`, `trainlog-btd`, `trainlog-syncd` et `trainlog-sync-once` ont été retirés de `~/.local/bin` : -les services Trainlog en cours utilisent leurs exécutables de déploiement -via les drop-ins systemd. La commande `trainlog` reste disponible. -Le lien `labfy-investigation-web` a été préservé malgré sa cible -actuellement absente, car son unité systemd référence encore ce chemin. +les services Trainlog utilisent maintenant directement les exécutables du +rollout vérifié dans leurs unités de base. La commande `trainlog` reste disponible. +Le lien `labfy-investigation-web` et son unité désactivée ont été +retirés au second audit : l'exécutable du service Web n'existe plus. +Le projet GTK de Labfy Investigation est indépendant de ce service Web. ## Entretien Zsh (novembre 2026) diff --git a/docs/systemd.md b/docs/systemd.md index 36f3971a1..a3b263517 100644 --- a/docs/systemd.md +++ b/docs/systemd.md @@ -27,6 +27,19 @@ mais il ne l'active pas. Les unités effectivement versionnées sous | Lardon | `lardon-freecad.service` | session FreeCAD liée au projet externe | | autres | `hyprwhspr.service`, `protonmail-bridge.service` | intégrations déclenchées selon l'usage | +Les unités Trainlog Bluetooth et synchronisation pointent désormais directement +vers les wrappers du rollout vérifié `program-recalage-v1-3a4ec34`, plutôt que +vers les anciens scripts sous `~/Documents/Development/trainlog`. Les surcharges +`program-recalage.conf` devenues redondantes ont été retirées. Le dépôt ne +contient pas ce rollout : il faut l'installer séparément avant d'activer les +services. La configuration sensible `sync-generation-config-v1.json` n'est pas +versionnée. `systemctl --user daemon-reload` suffit à lire les nouvelles unités, +sans redémarrer les processus en cours. + +L'unité Web historique `labfy-investigation-web.service` et son lien exécutable +cassé ont été retirés : le service était désactivé et sa cible avait disparu. +Cela ne concerne pas l'application GTK de Labfy Investigation. + Les liens versionnés dans `default.target.wants/`, `graphical-session.target.wants/`, `wayland-session@sway.desktop.target.wants/` et `timers.target.wants/` expriment les diff --git a/systemd/.config/systemd/user/labfy-investigation-web.service b/systemd/.config/systemd/user/labfy-investigation-web.service deleted file mode 100644 index 407caa933..000000000 --- a/systemd/.config/systemd/user/labfy-investigation-web.service +++ /dev/null @@ -1,22 +0,0 @@ -[Unit] -Description=Labfy Investigation Web local service -After=default.target - -[Service] -Type=simple -EnvironmentFile=%h/.config/labfy-investigation/web.env -ExecStart=%h/.local/bin/labfy-investigation-web -Restart=on-failure -RestartSec=10 -NoNewPrivileges=true -PrivateTmp=true -ProtectSystem=strict -ProtectControlGroups=true -ProtectKernelModules=true -ProtectKernelTunables=true -RestrictSUIDSGID=true -LockPersonality=true -SystemCallArchitectures=native - -[Install] -WantedBy=default.target diff --git a/systemd/.config/systemd/user/trainlog-btd.service b/systemd/.config/systemd/user/trainlog-btd.service index 577f1469f..d18039dbb 100644 --- a/systemd/.config/systemd/user/trainlog-btd.service +++ b/systemd/.config/systemd/user/trainlog-btd.service @@ -5,7 +5,8 @@ ConditionPathExists=/home/fy59/.config/trainlog/sync-generation-config-v1.json [Service] Type=simple ExecCondition=/usr/bin/grep -Eq '"bluetooth_enabled"[[:space:]]*:[[:space:]]*true' "/home/fy59/.config/trainlog/sync-generation-config-v1.json" -ExecStart=/usr/bin/python3 "/home/fy59/Documents/Development/trainlog/tools/trainlog_bt_agent.py" --config "/home/fy59/.config/trainlog/sync-generation-config-v1.json" +# Entrée réelle du rollout (vérifiée ; choisir la version à déployer explicitement). +ExecStart=/home/fy59/.local/share/trainlog/rollouts/program-recalage-v1-3a4ec34/desktop/bin/trainlog-btd --config /home/fy59/.config/trainlog/sync-generation-config-v1.json Restart=on-failure RestartSec=2 diff --git a/systemd/.config/systemd/user/trainlog-btd.service.d/program-recalage.conf b/systemd/.config/systemd/user/trainlog-btd.service.d/program-recalage.conf deleted file mode 100644 index 9f338c440..000000000 --- a/systemd/.config/systemd/user/trainlog-btd.service.d/program-recalage.conf +++ /dev/null @@ -1,3 +0,0 @@ -[Service] -ExecStart= -ExecStart=/home/fy59/.local/share/trainlog/rollouts/program-recalage-v1-3a4ec34/desktop/bin/trainlog-btd --config /home/fy59/.config/trainlog/sync-generation-config-v1.json diff --git a/systemd/.config/systemd/user/trainlog-syncd.service b/systemd/.config/systemd/user/trainlog-syncd.service index b1392013e..5f64caddd 100644 --- a/systemd/.config/systemd/user/trainlog-syncd.service +++ b/systemd/.config/systemd/user/trainlog-syncd.service @@ -3,9 +3,9 @@ Description=Trainlog automatic synchronization agent [Service] Type=simple -Environment=TRAINLOG_SYNC_BT_ADAPTER=/home/fy59/Documents/Development/trainlog/tools/trainlog_generation_bt_adapter.py -Environment=TRAINLOG_SYNC_MTP_ADAPTER=/home/fy59/Documents/Development/trainlog/build/tui/trainlog-generation-mtp-adapter -ExecStart=/usr/bin/python3 "/home/fy59/Documents/Development/trainlog/tools/trainlog_syncd.py" --sync-once "/home/fy59/Documents/Development/trainlog/build/tui/trainlog-sync-once" --bt-adapter "/home/fy59/Documents/Development/trainlog/tools/trainlog_generation_bt_adapter.py" --mtp-adapter "/home/fy59/Documents/Development/trainlog/build/tui/trainlog-generation-mtp-adapter" --interval 3 +# Le wrapper du rollout publie les bons adaptateurs et appelle sync-once. +# Ne jamais réutiliser les anciens chemins ~/Documents/Development/trainlog. +ExecStart=/home/fy59/.local/share/trainlog/rollouts/program-recalage-v1-3a4ec34/desktop/bin/trainlog-syncd --interval 3 Restart=on-failure RestartSec=2 diff --git a/systemd/.config/systemd/user/trainlog-syncd.service.d/program-recalage.conf b/systemd/.config/systemd/user/trainlog-syncd.service.d/program-recalage.conf deleted file mode 100644 index 85ab0b861..000000000 --- a/systemd/.config/systemd/user/trainlog-syncd.service.d/program-recalage.conf +++ /dev/null @@ -1,3 +0,0 @@ -[Service] -ExecStart= -ExecStart=/home/fy59/.local/share/trainlog/rollouts/program-recalage-v1-3a4ec34/desktop/bin/trainlog-syncd --interval 3