Forum OpenACS Development: Re: Sourcing of -init.tcl files
3: Re: Sourcing of -init.tcl files (response to 1)
Posted by Peter Marklund on 02/15/03 11:53 PM
I will give up on my ambition to be able to install packages without server restarts. At least the way OpenACS is used right now, a server restart isn't a problem. People don't install new packages very often.
The stumbling block I ran into is that the procs of a newly installed package wouldn't be available in the interpreter that executes a scheduled procedure setup by the -init.tcl file. I guess if there is a way to load procs into all Tcl interpreters in AOLServer we would have a solution. I'm not spending any more time investigating this right now though.
4: Re: Sourcing of -init.tcl files (response to 3)
Posted by Mark Aufflick on 02/21/03 01:07 PM
My thought is that the interpreter for scheduled procs could have tcl code sourced into it by scheduling a proc to run "now" (specifically without the -thread option to ad_schedule) that sourced the appropriate file.
I think that would work....