AOLserver Chat Logs

2006/01/29

IRC [02:52] *** carlb joined the chat.
IRC [02:52] <carlb> good morning... anyone home?
IRC [03:30] <tekbasse> Hi carlb, what's up?
IRC [03:31] <carlb> and there was light! :-)
IRC [03:31] <carlb> how do I set env variables for nsd?
IRC [03:31] <tekbasse> hmm.. I don't know off hand, but lets see if we can figure it out
IRC [03:31] <carlb> http://openacs.org/forums/message-view?message_id=387973
IRC [03:31] <carlb> (background)
IRC [03:32] <tekbasse> oh.. by environment... i get it okay.
IRC [03:32] * tekbasse reads the rest of the post
IRC [03:33] <carlb> if I run "exec env" from within aolserver I get these variables now:
IRC [03:33] <carlb> PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
IRC [03:33] <carlb> PWD=/var/lib/aolserver/crb/etc/daemontools
IRC [03:33] <carlb> SHLVL=0
IRC [03:34] <tekbasse> I believe you add them to the startup script
IRC [03:34] <carlb> a.k.a. config.tcl
IRC [03:34] <carlb> in the OpenACS world?
IRC [03:34] <tekbasse> one of the env vars has to be changed for freebsd ... not config.tcl
IRC [03:34] <tekbasse> yes
IRC [03:35] <tekbasse> 1 min, will get it from cvs
IRC [03:37] <tekbasse> http://cvs.openacs.org/cvs/openacs-4/packages/acs-core-docs/www/files/nsd-postgres.txt?rev=1.3.2.1&view=markup
IRC [03:39] <tekbasse> reading the aolserver4 docs about that: http://openacs.org/doc/current/aolserver4.html
IRC [03:40] <tekbasse> that script sets the enviornment vars for postgres before starting nsd, so my guess is you would want to add them there and for the nsd-oracle.txt and put a note in it, describing what the vars are for..
IRC [03:41] <tekbasse> hth, biab
IRC [03:41] * carlb checks out docs
IRC [03:43] <carlb> trying it now
IRC [03:56] * tekbasse is turning blue from holding his breath
IRC [03:57] <carlb> :-)
IRC [03:57] <carlb> sorry...
IRC [03:57] <carlb> I have a stock debian install
IRC [03:57] <tekbasse> not meaning to rush you.. just letting you know I'm back..
IRC [03:57] <carlb> and I do not have that file in place
IRC [03:57] <carlb> can I just add the needed line to config.tc
IRC [03:57] <carlb> l
IRC [03:57] <carlb> ?
IRC [03:58] <tekbasse> I don't think so
IRC [03:58] <carlb> I was trying to figure out how aolserver knows to load that nsd-postgres file
IRC [03:58] <tekbasse> nsd interprets config.tcl, whereas
IRC [03:58] <tekbasse> the startup script sets the environment before starting nsd
IRC [03:58] <carlb> and I was wondering why I do not have one in place
IRC [03:58] <tekbasse> how do you start nsd?
IRC [03:59] <carlb> using daemontools
IRC [03:59] <carlb> ah, maybe I can just put it in there
IRC [04:00] <tekbasse> okay, then daemontools accesses a similar, but different script
IRC [04:00] <carlb> (the run script)
IRC [04:00] <carlb> yeah
IRC [04:00] <carlb> that is it
IRC [04:00] <carlb> (has the freebsd line in there as well)
IRC [04:00] <tekbasse> okay, then. that's the right one
IRC [04:05] <carlb> takes a while to restart
IRC [04:09] <carlb> worked
IRC [04:09] <carlb> cool... thanks tekbasse
IRC [04:09] <tekbasse> you're welcome. Glad it worked for you!
IRC [04:14] <carlb> is setting the TERM variable in that file the correct fix?
IRC [04:15] <carlb> (wondering if I should add this to the start script that comes with OpenACS)
IRC [04:15] <tekbasse> unfortunately, I don't have the expertise to really answer that. I'd say go ahead though. at least add it as a comment so someone can uncomment it if they like
IRC [14:46] *** holycow joined the chat.
IRC [16:33] *** carlb parted the chat.
IRC [19:42] *** holycow parted the chat.
IRC [20:45] *** holycow joined the chat.
IRC [20:49] *** holycow parted the chat.