[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Ang Server tid Debian



Michael Rasmussen wrote:
On Wed, 29 Dec 2010 23:33:59 +0100
Phone contacts <sslug@sslug> wrote:

Er prøvet op til flere gange og det resulterer hver gang i den tidsforskel.

Kan nedenstående script ikke løse problemet, er der noget fundamentalt
galt med konfigurationen af uret.

#!/bin/sh
#Set time zone and time
NTP=/var/run/ntpd.pid
NTP_BIN=/etc/init.d/ntp
NTPDATE_BIN=/usr/sbin/ntpdate
AREA=Europe
CITY=Copenhagen
USE_NTP=0

if [ 0 -ne $(id -ru) ]; then
    echo Run as root or use sudo
    exit
fi

if [ -e $NTP ]; then
    echo Terminating running ntp daemon
    PID=$(cat $NTP)
    kill -TERM $PID
    sleep 5
    rm -f $NTP
    USE_NTP=1
fi

echo "tzdata tzdata/Areas select $AREA" | debconf-set-selections
echo "tzdata tzdata/Zones/Europe select $CITY" | debconf-set-selections
TIMEZONE="$AREA/$CITY"
echo $TIMEZONE > /etc/timezone
cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
if [ -e $NTPDATE_BIN ]; then
	/usr/sbin/ntpdate pool.ntp.org
else
	echo Missing $NTPDATE_BIN: Adjust time manual
fi

if [ $USE_NTP -eq 1 ]; then
	$NTP_BIN start
fi

Hej Sslug

Er lige kommet hjem og prøvede lige Michael's script, hvilket jeg generelt ikke syntes om da det tyder på symptom behandling istedet for og filde fejlen. Dog hans script virker heller ikke, den kører stadig de der ca 1 time og 50 min ved siden af efter at jeg brugte hans script.

Med venlig hilsen
Tanja Sørensen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2011-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *