|
If a service crashes that is managed by SMF, SMF will place it in "maintenance mode." For any service in maintenance mode, you need to restart the service manually with SMF. You can also use SMF to restart Webmin if necessary. In this topic: |
At a Glance
This topic shows you how to restart a service if it is disabled or in maintenance mode using SMF. You can also use SMF to restart Webmin if it crashes. |
Restarting Services
You can restart or re-enable a service by doing the following.
| You need to run these procedures as the root user or admin user with sudo access. |
Services in Maintenance Mode
SMF will place a service in maintenance mode when the service encounters something that causes it to crash. This usually indicates an error with the service but can also occur if your SmartMachine is running out of resources (RAM or disk space).
To verify if a service is in maintenance mode:
- Run this command:
This will show all running and disabled services. If a service is in maintenance mode, you will see something similar to this:
- Review the log to root-cause why the service was in maintenance mode.
- Take the service out of maintenance mode:
Disabled Services
To verify if a service is disabled:
If the service is disabled, you will see something similar to this:
Enable a Service
To enable a service:
- Enable the service:
- Verify the service is enabled:
If successful, you should see something similar to this:
The term "online" is the service state and indicates that the service is running.
Restarting Webmin
If Webmin becomes unresponsive or unreachable, you can restart it through SSH.
- Login as an administrative user:
- Check the current state of Webmin:
- If shown as "running" then:
- Restart Webmin:
- Restart Webmin:
- If shown as "disabled" then:
- Start Webmin:
- Start Webmin:
- If shown as "maintenance":
- Clear Webmin:
- Clear Webmin:
- If shown as "running" then:
- Make sure Webmin is not in maintenance:
- If Webmin is listed as being in maintenance, run: