Patrik wrote: > > > I've noticed that on ConnMan 1.30, net.connman.Clock property Timezone > > > isn't updating when /etc/localtime gets changed. > > > > > > I found this old message which sounds similar -- "[PATCH] timezone: > > > Fix timezone can't auto update, file localtime permission issue": > > > https://lists.connman.net/pipermail/connman/2011-July/005354.html > > > > > > In my target system, /etc/localtime is a symlink into the appropriate > > > file under /usr/share/zoneinfo. > > > > I've tried making /etc/localtime an ordinary file, rather than a symlink. > > But still > > ConnMan doesn't notice when it changes. Is Timezone update working for > > others? > > > > My target system is an ARM embedded system built with Yocto. I've verified > > that inotify is enabled in my system's kernel. > > > Currently ConnMan only writes to /etc/localtime when the experimental > Clock API Timezone property is updated. Nothing in ConnMan watches this > file for changes. You are free to send a patch for this, see > include/inotify.h for support functions.
That doesn't sound right -- it looks as though there's code in timezone.c to watch the file for changes. __connman_timezone_init() sets up an inotify on /etc. When inotify triggers it calls inotify_data(). If the file that changed is localtime, then it calls __connman_clock_update_timezone(). Presumably something in that mechanism is broken. -- Craig McQueen _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman