[ic] Set variable to query result at start-up?

Stefan Hornburg (Racke) racke at linuxia.de
Fri Feb 15 05:18:52 EST 2008

Jon Jensen wrote:
> On Thu, 14 Feb 2008, Davor Ocelic wrote:
>>> I've determined this won't work, because the database connection
>>> isn't established at the time I need it to be in order to run the
>>> query. I really have to do this inside the catalog.cfg somehow, and
>>> after the point where the Database directives have been processed.
>> If IC Jobs are mimicking Unix cron in a way, how about adding support
>> for special time specification in style of Unix cron, but instead of
>> @reboot like in Cron, we'd call it @startup and/or @reconfig. It would
>> run in catalog context, after catalog is configured, and once for
>> @startup, or each time for @reconfig.
> That sounds like it could work, as long as it happened before forking
> any child processes so that the changes were guaranteed to happen before
> any processing happens.

I might work, but IMHO this is really a useful feature for Interchange.
It shouldn't be hard to add a new directive which is called after
catalog configuration. Hiding this feature within Cron add complexibility
to the code and to the documentation :-). Adding this to bugtracker:



LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list