chore(systemd): reparer Trainlog et retirer le service Web orphelin

This commit is contained in:
fy59 2026-11-01 08:33:24 +01:00
parent f53a36ae9c
commit 60bc74da8a
8 changed files with 23 additions and 37 deletions

View file

@ -1 +0,0 @@
/home/fy59/Documents/Development/labfy-investigation/scripts/labfy-investigation-web

View file

@ -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é. ultérieurement seulement après vérification de leur inutilité.
Les liens cassés `labfy-remote-ui`, `trainlog-btd`, `trainlog-syncd` Les liens cassés `labfy-remote-ui`, `trainlog-btd`, `trainlog-syncd`
et `trainlog-sync-once` ont été retirés de `~/.local/bin` : et `trainlog-sync-once` ont été retirés de `~/.local/bin` :
les services Trainlog en cours utilisent leurs exécutables de déploiement les services Trainlog utilisent maintenant directement les exécutables du
via les drop-ins systemd. La commande `trainlog` reste disponible. rollout vérifié dans leurs unités de base. La commande `trainlog` reste disponible.
Le lien `labfy-investigation-web` a été préservé malgré sa cible Le lien `labfy-investigation-web` et son unité désactivée ont été
actuellement absente, car son unité systemd référence encore ce chemin. 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) ## Entretien Zsh (novembre 2026)

View file

@ -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 | | 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 | | 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/`, Les liens versionnés dans `default.target.wants/`,
`graphical-session.target.wants/`, `wayland-session@sway.desktop.target.wants/` `graphical-session.target.wants/`, `wayland-session@sway.desktop.target.wants/`
et `timers.target.wants/` expriment les et `timers.target.wants/` expriment les

View file

@ -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

View file

@ -5,7 +5,8 @@ ConditionPathExists=/home/fy59/.config/trainlog/sync-generation-config-v1.json
[Service] [Service]
Type=simple Type=simple
ExecCondition=/usr/bin/grep -Eq '"bluetooth_enabled"[[:space:]]*:[[:space:]]*true' "/home/fy59/.config/trainlog/sync-generation-config-v1.json" 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 Restart=on-failure
RestartSec=2 RestartSec=2

View file

@ -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

View file

@ -3,9 +3,9 @@ Description=Trainlog automatic synchronization agent
[Service] [Service]
Type=simple Type=simple
Environment=TRAINLOG_SYNC_BT_ADAPTER=/home/fy59/Documents/Development/trainlog/tools/trainlog_generation_bt_adapter.py # Le wrapper du rollout publie les bons adaptateurs et appelle sync-once.
Environment=TRAINLOG_SYNC_MTP_ADAPTER=/home/fy59/Documents/Development/trainlog/build/tui/trainlog-generation-mtp-adapter # Ne jamais réutiliser les anciens chemins ~/Documents/Development/trainlog.
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 ExecStart=/home/fy59/.local/share/trainlog/rollouts/program-recalage-v1-3a4ec34/desktop/bin/trainlog-syncd --interval 3
Restart=on-failure Restart=on-failure
RestartSec=2 RestartSec=2

View file

@ -1,3 +0,0 @@
[Service]
ExecStart=
ExecStart=/home/fy59/.local/share/trainlog/rollouts/program-recalage-v1-3a4ec34/desktop/bin/trainlog-syncd --interval 3