系统初始化属性现在是以下 SMF 服务的一部分:
svc:/system/environment:init
您可以使用类似以下内容的语法显示和配置系统初始化属性,例如 TZ 和 LANG。
# svccfg -s svc:/system/environment:init svc:/system/environment:init> setprop Usage: setprop pg/name = [type:] value setprop pg/name = [type:] ([value...]) Set the pg/name property of the currently selected entity. Values may be enclosed in double-quotes. Value lists may span multiple lines. svc:/system/environment:init> listprop umask application umask/umask astring 022 umask/value_authorization astring solaris.smf.value.environment environment application environment/LANG astring environment/LC_ALL astring . . .
有关更多信息,请参见 init(1M) 的 FILES 部分。