Technical Tip: How to properly shut down or reboot a FortiGate
| Description | This article describes best practices for shutting down or rebooting a FortiGate. |
| Scope | FortiGate. |
| Solution | Always shut down the FortiGate operating system properly before turning off the power switch to avoid potential hardware problems.
To power off or restart a FortiGate unit correctly, follow the steps:
From the CLI, execute one of the following commands depending on whether it is necessary to perform a shutdown or reboot of the device:
execute shutdown execute reboot
Schedule the shutdown or reboot at a specific time: Where needed, the automated schedule action for firewall shutdown or reboot can be defined using the following automation stitch: config system automation-action
edit "Automatic_shutdown" set trigger-type scheduled next end
config system automation-stitch edit "Automatic_shutdown" set required enable end end
To configure the schedule for shutdown or reboot from the GUI, go to Security Fabric -> Automation and configure 'Action', 'Trigger', and 'Stitch' as below:
In the case of a reboot, the only difference is to write in the 'Script' field: execute reboot.
Note: It is necessary to define the trigger hour and trigger minute. The requirement and the command will be executed based on the firewall time. Check the firewall date and time with the following command:
It is also possible to program daily restarts for the FortiGate. It can only be set with the CLI command below (example):
config system global set daily-restart enable set restart-time 05:06 Note: FortiGate devices support different methods to stop or restart the system. Selecting the correct method is important to ensure system stability, configuration integrity, and to avoid unintended service interruptions. Recommended system power actions: Graceful Shutdown:
System reboot:
Power cycle:
Note: If the reason for the reboot is part of a troubleshooting process, it is recommended to back up the configuration before rebooting or shutting down, in case something goes wrong and the appliance does not start up properly. After an unexpected power outage, be sure to gracefully reboot the FortiGate through the GUI or CLI to ensure configuration and services load and function correctly. This can prevent or recover unexpected issues/behaviour from happening post power outage.
Related articles: |




