xref: /titanic_51/usr/src/man/man4/init.4 (revision a65cd518c5d0f30c53594a7022eb0f7d04c98cef)
te
Copyright 2014 Garrett D'Amore
Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
Copyright 1989 AT&T
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
init 4 "Mar 15, 2014"
NAME
init - set default system time zone and locale
SYNOPSIS

/etc/default/init
DESCRIPTION

This file sets the time zone environment variable TZ, and the locale-related environment variables LANG, LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and LC_TIME.

/etc/TIMEZONE is a symbolic link to /etc/default/init. This link exists for compatibility with legacy software, is obsolete, and may be removed in a future release.

The number of environment variables that can be set from /etc/default/init is limited to 20.

The format of the file is:

VAR=value

where VAR is a timezone environment variable and value is the value assigned to the variable. value can be enclosed in double quotes (") or single quotes ('). The double or single quotes cannot be part of the value.

SEE ALSO

init(1M), rtc(1M), ctime(3C), environ(5)

NOTES

When changing the TZ setting on x86 systems, you must make a corresponding change to the /etc/rtc_config file to account for the new timezone setting. This can be accomplished by executing the following commands, followed by a reboot, to make the changes take effect:

# rtc -z zone-name
# rtc -c

where zone-name is the same name as the TZ variable setting.

See rtc(1M) for information on the rtc command.