On Wed, 15 Jan 2025 at 23:12, Sven Geuer <s...@debian.org> wrote: > > On Wed, 2025-01-15 at 20:28 +0100, Thorsten Glaser wrote: > > On Wed, 15 Jan 2025, Sven Geuer wrote: > > > > > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504044#162 > > > > > Applying ExecCondition to me seems the most reasonable solution to this > > > bug. > > > > Can the script behind ExecCondition pass variables to the script > > behind ExecStart or, even better, the unit itself so we can then > > use $HRNGDEVICE and $RNGDOPTIONS there? > > Found no suitable way to achieve this. One can write a file to hold the > variables and their values when checking the conditions, and read it > back when actually starting the service, but this seems a clunky > approach to me.
This is an anti-pattern, and best avoided. What's the problem if the script runs twice? If it just detects things it should be just fine, no?