1 description "Set time zone information"
3 start on local-filesystems
7 . /etc/sysconfig/timezone
9 ZONE_FILE="$ZONE_INFO_DIR"
11 if [ -n "$ZONE_INFO_SCHEME" -a "$ZONE_INFO_SCHEME" != "posix" ]; then
12 ZONE_FILE="$ZONE_FILE/$ZONE_INFO_SCHEME"
15 ZONE_FILE="$ZONE_FILE/$TIMEZONE"
17 [ -L /etc/localtime ] && [ "$(resolvesymlink /etc/localtime)" = "$ZONE_FILE" ] && exit 0
19 printf "Setting time zone information (%s)\n" "$TIMEZONE"
20 cp -af "$ZONE_FILE" /etc/localtime || :
21 restorecon /etc/localtime >/dev/null 2>&1 || :