Forum OpenACS Development: Re: Another possible bug: watched proc files don't get loaded

Don't ns_eval an -init file, its just supposed to run once. Just [source the/file] instead.

ns_eval loads the file in every thread including scheduled proc threads.

Dave, your TIP (https://openacs.org/forums/message-view?message_id=923672) says that you can use ns_eval to reload scheduled procs on a running server. If your scheduled procs are included in the -init file, you would need to reload the -init file. I realize this is not the convention. Most -init files schedule a proc included in another -proc file.

To reload most proc files, watch it (this uses [source file]) but to reload a scheduled proc, ns_eval the file which contains it.

As we discussed in IRC the watch mechanism is not very elegant, and it adds overhead. It also does not work when a site is in production mode.