...
By default, all services for which the value of the general/enabled
property is true
are started at system boot. To change the milestone to which to boot a system, use one of the following methods. The value of milestone can be the FMRI of a milestone service or a keyword as shown in Table A–2.
When booting a SPARC system, specify the
-m
option to theboot
command at theok
prompt. See the-m
option in thekernel
(1M) man page.Code Block ok boot -m milestone=milestone
When booting an x86 system, edit the GRUB menu to specify the
-m
option. See Adding Kernel Arguments by Editing the GRUB Menu at Boot Time in Booting and Shutting Down Oracle Solaris 11.2 Systems and the-m
option in thekernel
(1M) man page.Prior to rebooting a system, use the
svcadm milestone
command with the-d
option. Note that with or without the-d
option, this command restricts and restores running services immediately. With the-d
option, the command also makes the specified milestone the default boot milestone. This new default is persistent across reboots.Code Block $ svcadm milestone -d milestone
This command does not change the current run level of the system. To change the current run level of the system, use the
init
command.If you specify the
-s
option,svcadm
changes the milestone and then waits for the transition to the specified milestone to complete before returning. Thesvcadm
command returns when all instances have transitioned to the state necessary to reach the specified milestone or when it determines that administrator intervention is required to make a transition. Use the-T
option with the-s
option to specify an upper bound in seconds to complete the milestone change operation or return.
The following table describes SMF boot milestones, including any corresponding Oracle Solaris run level. A system’s run level defines what services and resources are available to users. A system can be in only one run level at a time. For information about run levels,see How Run Levels Work in Booting and Shutting Down Oracle Solaris 11.2 Systems , the inittab
(4) man page, and the /etc/init.d/README
file. For more information about SMF boot milestones, see the milestone
subcommand in the svcadm
(1M) man page.
Anchor | |||||
---|---|---|---|---|---|
|
...