summaryrefslogtreecommitdiffstats
path: root/named.init
diff options
context:
space:
mode:
Diffstat (limited to 'named.init')
-rwxr-xr-xnamed.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/named.init b/named.init
index f5534e3..317f034 100755
--- a/named.init
+++ b/named.init
@@ -38,6 +38,9 @@ start() {
if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then
OPTIONS="${OPTIONS} -t ${ROOTDIR}"
ckcf_options="-t ${ROOTDIR}";
+ if [ -s /etc/localtime ]; then
+ cp -fp /etc/localtime ${ROOTDIR}/etc/localtime
+ fi;
fi
conf_ok=0;
if [ -x /usr/sbin/named-checkconf ] && /usr/sbin/named-checkconf $ckcf_options; then