Jail's Date/NTP

Status
Not open for further replies.

MtK

Patron
Joined
Jun 22, 2013
Messages
471
Hey,
is it possible to sync jail's date with the main system's date?

Code:
[root@FN] ~# date
Fri Feb 20 11:09:14 CET 2015

Code:
[root@FN] ~# jexec 3 csh
root@sabnzbd_1:/ # date
Fri Feb 20 12:09:30 IST 2015
 
D

dlavigne

Guest
Not using ntp as that service cannot change the system time from within a jail. I'm not sure whether or not tzsetup runs in a jail though as your issue is related to an incorrect time zone. Try typing tzsetup within the jail and follow the screens to set the correct time zone and let us know whether or not that fixes it.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think your supposed to copy /etc/localtime from the host to the jail. this is something I would think FN should do automatically.
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
Status
Not open for further replies.
Top