erplibre/doc
Mathieu Benoit 292a03be8d [ADD] run: choisir la base au démarrage, sans jamais bloquer
« ./run.sh » sans argument partait sans base et l'on choisissait dans le
gestionnaire web. Il choisit maintenant : une seule base, il démarre
dessus ; plusieurs, il affiche un menu numéroté.

Ce qui décide n'est pas le menu mais l'endroit où il ne doit PAS s'ouvrir.
systemd écrit « ExecStart=/bin/bash …/run.sh » sans argument, avec
Restart=always : une question posée là serait une boucle de redémarrage.
Le défaut implicite exige donc un terminal sur stdin ET sur stderr — pas
stdout, qui est toujours un tube dans la substitution qui nous lit.
Mesuré : sans terminal, la ligne d'arguments est identique à l'octet et
la sonde, qui coûte 0,8 s, n'est jamais appelée.

--- EN ---

« ./run.sh » with no argument started without a database and one picked
in the web manager. It now picks: a single database, it starts on it;
several, it shows a numbered menu.

What decides is not the menu but where it must NOT open. systemd writes
« ExecStart=/bin/bash …/run.sh » with no argument and Restart=always: a
question asked there would be a restart loop. The implicit default
therefore requires a terminal on stdin AND on stderr — not stdout, which
is always a pipe inside the substitution that reads us. Measured: with no
terminal the argument line is byte-for-byte identical and the 0.8 s probe
is never called.

Assisted-by: Claude Opus 5
2026-08-23 17:26:41 -04:00
..
image [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
schema [ADD] TODO + doc schema 2024-08-25 00:13:00 -04:00
AGENT.INFO.base.md [FIX] doc agent translation 2026-03-08 17:39:20 -04:00
AGENT.INFO.fr.md [FIX] doc agent translation 2026-03-08 17:39:20 -04:00
AGENT.INFO.md [FIX] doc agent translation 2026-03-08 17:39:20 -04:00
CODE_GENERATOR.base.md [FIX] doc markdown french accent 2026-03-07 00:46:05 -05:00
CODE_GENERATOR.fr.md [FIX] doc markdown french accent 2026-03-07 00:46:05 -05:00
CODE_GENERATOR.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
CONTRIBUTION.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
CONTRIBUTION.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
CONTRIBUTION.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
DEVELOPMENT.base.md [FIX] doc markdown french accent 2026-03-07 00:46:05 -05:00
DEVELOPMENT.fr.md [FIX] doc markdown french accent 2026-03-07 00:46:05 -05:00
DEVELOPMENT.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
DISCOVER.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
DISCOVER.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
DISCOVER.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
EMAIL.base.md [ADD] mail: read and send email from the TODO CLI 2026-08-16 03:56:34 -04:00
EMAIL.fr.md [ADD] mail: read and send email from the TODO CLI 2026-08-16 03:56:34 -04:00
EMAIL.md [ADD] mail: read and send email from the TODO CLI 2026-08-16 03:56:34 -04:00
FAQ.base.md [ADD] doc FAQ.md guide support wkhtmltopdf for recent version 2026-03-07 00:46:05 -05:00
FAQ.fr.md [ADD] doc FAQ.md guide support wkhtmltopdf for recent version 2026-03-07 00:46:05 -05:00
FAQ.md [ADD] doc FAQ.md guide support wkhtmltopdf for recent version 2026-03-07 00:46:05 -05:00
GIT_REPO.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
GIT_REPO.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
GIT_REPO.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
HOWTO.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
HOWTO.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
HOWTO.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
MIGRATION.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
MIGRATION.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
MIGRATION.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
POETRY.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
POETRY.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
POETRY.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
PRODUCTION.base.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
PRODUCTION.fr.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
PRODUCTION.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
RELEASE.base.md [FIX] doc markdown french accent 2026-03-07 00:46:05 -05:00
RELEASE.fr.md [FIX] doc markdown french accent 2026-03-07 00:46:05 -05:00
RELEASE.md [UPD] doc replace odoo 16 by odoo 18 2026-03-07 00:06:11 -05:00
RUN.base.md [ADD] run: choisir la base au démarrage, sans jamais bloquer 2026-08-23 17:26:41 -04:00
RUN.fr.md [ADD] run: choisir la base au démarrage, sans jamais bloquer 2026-08-23 17:26:41 -04:00
RUN.md [ADD] run: choisir la base au démarrage, sans jamais bloquer 2026-08-23 17:26:41 -04:00
TODO.base.md [ADD] mail: read and send email from the TODO CLI 2026-08-16 03:56:34 -04:00
TODO.fr.md [ADD] mail: read and send email from the TODO CLI 2026-08-16 03:56:34 -04:00
TODO.md [ADD] mail: read and send email from the TODO CLI 2026-08-16 03:56:34 -04:00
UPDATE.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
UPDATE.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
UPDATE.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
WINDOWS_INSTALLATION.base.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
WINDOWS_INSTALLATION.fr.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
WINDOWS_INSTALLATION.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00