On Mon, 28 Jul 2003, graham Dinning <gdinning@resmaster.com> wrote:
> Hi people,
> I have an interesting conundrum. We run as a small ISP for clients as a
> side business.
> We have a single server that does everything running RH7.2. it runs DNS,
> mail, web, webmail, java, tomcat, database etc etc.
> The boss sent an email yesterday asking id we could use GMT for our
> clients overseas and stay local time for our clients in oz.
> This is a valid enough request.
> The people in england want to see their reports etc in their time and the
> clients in oz want the same.
> If I ask the question of people I know I get "Use UTC and everone can just
> cope".
>
> Is there a solution to this problem or do people just run another box for
> this kind of situation. Thinking about it it seems that you would have to
> run little virtual servers or different boxes.
> Is this actually the case or is there something out there already that
> solves this problem. I have been looking in lots of places and can't seem to
> find any good answers.
>
> Thanks in advance
> Graham
I help someone with a virtual host on FreeBSD 4.4-RELEASE. Apache and
sendmail run within their home dir (chroot jail). But that requires that
all necessary binaries, libs, perl, etc. be within the chroot jail. When
logged into the shell, it is not within the virtual jail, but a virtual
command can be used to test things there. For example:
% date
Mon Jul 28 01:58:12 GMT 2003
% virtual date
Sun Jul 27 20:58:24 CDT 2003
So apache and sendmail logs would be in the user's timezone.
Time zone could also possibly be set in the user's login shell if the
system is set up properly for that. Just an example of how setting
timezone (TZ) in environment affects date:
#!/bin/sh
date
export TZ="UTC"
date
export TZ="PST8PDT"
date
prints:
Sun Jul 27 21:11:31 CDT 2003
Mon Jul 28 02:11:31 UTC 2003
Sun Jul 27 19:11:31 PDT 2003
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/