This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
one_off_reboot [2020/08/28 12:43] – rs232 | one_off_reboot [2023/05/23 19:47] (current) – -formatting hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== One-off | + | ====== |
- | You might find yourself in the position where you need to e.g. restart your device | + | What if you wanted |
- | You might have noticed under Administration/ | + | You might have noticed |
- | A simple solution to have a reboot performed | + | A simple solution to this is to configure |
- | < | + | You can arrange the the above by adding |
- | cru a reboot-one-off "0 5 * * * / | + | |
+ | \\ | ||
+ | |||
+ | For example: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | <code -> | ||
+ | cru a reboot-one-off "0 5 * * * / | ||
</ | </ | ||
- | This command | + | |
- | NOTE: this is effective on a running device but not saved permanently anywhere in the config, hence after reboot the sheduled activity will automatically disappear (good!). | + | The standard Unix cron syntax can be found here: [[https:// |
- | If you need to remove | + | This command will take effect on a running device, but would not be saved permanently in the configuration. Thus, after a reboot, |
- | < | + | |
- | cru d reboot-one-off | + | \\ |
+ | If you need to remove the scheduled activity before it is executed, use the following command: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | <code -> | ||
+ | cru d reboot-one-off | ||
</ | </ | ||
- | to verify use: | + | \\ \\ To verify |
- | < | + | \\ |
- | cru l | + | |
+ | <code -> | ||
+ | cru l | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | \\ | ||