Ack! Reply-all didn't include the mailing list. Fixed :) On Jan 8, 2007, at 6:58 AM, Darren Dunham wrote:
>> Thanks, that's exactly what I needed to make it work. Although the >> Timezone files did exist on my system, attempting to use them in the >> TZ variable didn't work, as mentioned before. Using the explicit >> definition, however, once I managed to figure out what to enter for >> it, produced the desired result, with one caviat: I had to put AKST+9 >> rather than AKST-9, even though our offset is -9, not +9. > > It all depends on how you look at it. :-) POSIX defines timezones > such > that positive offsets are west and negative offsets east. Maybe you > think of it as what you have to add to the local timezone to get UTC. Ok, yeah, that makes sense. AK time +9=UTC. Guess I was just thinking about it backwards :) > >> Worked >> though, so I suppose in the long run it doesn't really matter :) Now >> I just have to figure out how to set that environment variable before >> Apache is launched at start up, since the rc.conf file that I edited >> to enable Apache on startup doesn't actually include the command line >> used to launch Apache-just the flags used when launching. > > It doesn't call 'httpd' or 'apachectl'? Either way you should be able > to set and export TZ before that point. rc.conf doesn't call either directly - it just has a httpd_flags="" entry, that when commented out disables the server, and when not commented out causes the server to start with whatever flags are on that line (-u, -DSSL, etc.) I'm sure apachectl or httpd is called somewhere, but I don't know from where- generally you just edit the rc.conf or rc.local files to enable/disable services. Now it may work to just put an "export TZ=..." line before the httpd_flags entry, but I haven't experimented with that yet. > > -- > Darren Dunham > [EMAIL PROTECTED] > Senior Technical Consultant TAOS http:// > www.taos.com/ > Got some Dr Pepper? San Francisco, CA bay > area > < This line left intentionally blank to confuse you. > ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
