1 '\" te
   2 .\" Copyright 2014 Garrett D'Amore
   3 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
   4 .\" Copyright 1989 AT&T
   5 .\" 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.
   6 .\" 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.
   7 .\" 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]
   8 .TH init 4 "Mar 15, 2014"
   9 .SH NAME
  10 init \- set default system time zone and locale
  11 .SH SYNOPSIS
  12 .LP
  13 .nf
  14 \fB/etc/default/init\fR
  15 .fi
  16 
  17 .SH DESCRIPTION
  18 .sp
  19 .LP
  20 This file sets the time zone environment variable \fBTZ\fR, and the
  21 locale-related environment variables \fBLANG\fR, \fBLC_COLLATE\fR,
  22 \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, \fBLC_MONETARY\fR, \fBLC_NUMERIC\fR, and
  23 \fBLC_TIME\fR.
  24 .sp
  25 .LP
  26 \fB/etc/TIMEZONE\fR is a symbolic link to \fB/etc/default/init\fR.  This
  27 link exists for compatibility with legacy software, is obsolete, and may
  28 be removed in a future release. 
  29 .sp
  30 .LP
  31 The number of environment variables that can be set from
  32 \fB/etc/default/init\fR is limited to 20.
  33 .sp
  34 .LP
  35 The format of the file is:
  36 .sp
  37 .in +2
  38 .nf
  39 \fIVAR\fR\fB=\fR\fIvalue\fR
  40 .fi
  41 .in -2
  42 .sp
  43 
  44 .sp
  45 .LP
  46 where \fIVAR\fR is a timezone environment variable and \fIvalue\fR is the value
  47 assigned to the variable. \fIvalue\fR can be enclosed in double quotes (") or
  48 single quotes (\&'). The double or single quotes cannot be part of the value.
  49 .SH SEE ALSO
  50 .sp
  51 .LP
  52 \fBinit\fR(1M), \fBrtc\fR(1M), \fBctime\fR(3C), \fBenviron\fR(5)
  53 .SH NOTES
  54 .sp
  55 .LP
  56 When changing the \fBTZ\fR setting on x86 systems, you must make a
  57 corresponding change to the \fB/etc/rtc_config\fR file to account for the new
  58 timezone setting. This can be accomplished by executing the following commands,
  59 followed by a reboot, to make the changes take effect:
  60 .sp
  61 .in +2
  62 .nf
  63 # rtc \fB-z\fR \fIzone-name\fR
  64 # rtc \fB-c\fR
  65 
  66 .fi
  67 .in -2
  68 .sp
  69 
  70 .sp
  71 .LP
  72 where \fIzone-name\fR is the same name as the \fBTZ\fR variable setting.
  73 .sp
  74 .LP
  75 See \fBrtc\fR(1M) for information on the \fBrtc\fR command.