If the service configuration is wrong, the problem can be fixed by reverting to the last snapshot that started successfully. In this procedure, a previous snapshot of the console-login service is used.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Run the svccfg command.
# svccfg svc:> |
Select the service instance that you want to fix.
You must use an FMRI that fully defines the instance. No shortcuts are allowed.
svc:> select system/console-login:default svc:/system/console-login:default> |
Generate a list of available snapshots.
svc:/system/console-login:default> listsnap initial running start svc:/system/console-login:default> |
Select to revert to the start snapshot.
The start snapshot is the last snapshot in which the service successfully started.
svc:/system/console-login:default> revert start svc:/system/console-login:default> |
Quit svccfg.
svc:/system/console-login:default> quit # |
Update the information in the service configuration repository.
This step updates the repository with the configuration information from the start snapshot.
# svcadm refresh system/console-login |
Restart the service instance.
# svcadm restart system/console-login |