Re: return codes from onstat
Posted in 1997
On Tue, 15 Jul 1997, Barry Lemrow wrote:
> The start script for one of the applications on our system defines the
> return codes as follows:
> 255 # Informix mode is Down
> -1 # Informix mode is Down (60_USAP2)
> 0 # Informix mode is Initialization
> 1 # Informix mode is Quiescent
> 2 # Informix mode is Fast Recovery
> 3 # Informix mode is Archive backup
> 4 # Informix mode is Shutting Down
> 5 # Informix mode is Online
> 6 # Informix mode is System Aborting
We've found that 2 is also returned in a lot of places for "Something
weird happened." For instance, we rcently ran into a situation where a
newly restored database (well out of recovery) that appeared perfectly
usable was failing its oncheck -cIs. Our app ran, and you could do a full
dbexport, but any cI would result in a) the normal output (for a single table
only, the whole database just returned the first table) and b) a $? of 2.
Odd. I don't recall how we fixed it, but this wasn't the first time we've
seen a 2 show up in odd situations.
Just my US$0.02
-Richard