On Sun, Sep 09, 2012 at 11:12:55AM -0700, Richard Doyle wrote:
> In April 2011 a thread on this list indicated that the client time
> setting function is located in
> /opt/ltsp/i386/usr/share/ltsp/ltsp-init-common. However, that file no
> longer contains time setting functions in my new Edubuntu 12.04
> installation.
> 
> The following month there was a discussion on IRC about setting a
> HWCLOCK parameter in lts.conf. There is no mention of this parameter in
> the lts.conf man page, and I suspect it doesn't exist.
> 
> What's the current status of hwclock, time zones, shutdown time, and
> such? Do clients need to have hardware clocks set to UTC?

Most functionality has been moved to init-ltsp.d scripts...

In upstream LTSP, which may be slightly different from what made it into Ubuntu
12.04...

TIMEZONE, TIMESERVER and HWCLOCK are implemented in 
/opt/ltsp/i386/usr/share/ltsp/init-ltsp.d/50-set-time: 

# Set up timezone
if [ -n "$TIMEZONE" ] && [ -e "/usr/share/zoneinfo/$TIMEZONE" ]; then
    cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime 2>/dev/null
fi

# Set timeserver to $SERVER if set to autodetect
if [ "$TIMESERVER" = "auto" ]; then
    TIMESERVER=${SERVER}
fi

# Set up timeserver
if [ -n "$TIMESERVER" ]; then
    ntpdate -p 1 $TIMESERVER && hwclock --systohc --${HWCLOCK:-"utc"} 
--noadjfile || true
fi

if no HWCLOCK is set, it defaults to utc.


SHUTDOWN_TIME is implemented in
/opt/ltsp/i386/usr/share/ltsp/init-ltsp.d/50-cron:

CRON_FILE=/etc/cron.d/ltsp
if [ ! -w "/etc/cron.d" ]; then
    echo "Warning: /etc/cron.d is not writeable."
    return 1
fi
if [ -n "$SHUTDOWN_TIME" ] ; then
    echo $SHUTDOWN_TIME | awk -F : '{print $2" "$1" * * * root test ! -S \"$(ls 
-1 /var/run/ldm_socket_* | head -1)\" && PATH=\$PATH:/sbin/ poweroff" }' >> 
$CRON_FILE
fi
env | sed -n 's/^CRONTAB_[0-9][0-9]=//p' >> $CRON_FILE


live well,
  vagrant

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to