Skip to Content.

rare-dev - Re: [rare-dev] Integration of the release manager

Subject: Rare project developers

List archive


Re: [rare-dev] Integration of the release manager


Chronological Thread 
  • From: mc36 <>
  • To: Alexander Gall <>
  • Cc:
  • Subject: Re: [rare-dev] Integration of the release manager
  • Date: Wed, 6 Apr 2022 06:03:49 +0200

hi,

On 4/5/22 11:12, Alexander Gall wrote:
what about adding "alias exec tna-switch-to-generation cmd2nd reload warm" ?
(the rationale here is that once someone issued this, there is the intent...:)
There is a slight problem with the cmd2nd mechanism, because it is run
unconditionally after the main command. The problem is that the main
command can fail when the user enters a non-existent profile name. The
main command can also be called without argument and then prints
information about which RARE generation will be activated at the next
restart. In both cases, we obviously don't want to perform a warm
start.

What you could do is to make the execution of the cmd2nd depend on the
exit status of the main command. What do you think?

bad news here, at least partially... :)
so the exec commands in freerouter does not have exit status,
but the convention that they output nothing if everything went ok...

it's a good observation that the cmd2nd now gets blindly executed,
but it's easy-peasy to check if the previous command printed anything...

any opinion?

thanks,
cs



Archive powered by MHonArc 2.6.19.

Top of Page