Delay command after boot
-
Hi, is there any guide how to run a command after boot with some delay - let say in minutes? I would like to wake-on-lan other devices after boot but with some safety delay in case of another power outage. Thank you for ideas.
-
@sikita
you can install from package manager -> cron
or -> shellcmd -
@kiokoman How can I delay that using cron or shellcmd? For example to run command 30minutes after boot?
-
-
@kiokoman said in Delay command after boot:
@reboot sleep 1800
thanks, but cron or shellcmd allows @reboot ? I would prefer to run command directly instead of script.sh
-
@sikita
cron -> @reboot sleep 1800 && my_script.sh
for shellcmd idk maybe you put the sleep 1800 inside my_script.sh
https://docs.netgate.com/pfsense/en/latest/development/boot-commands.html#shell-script-optionfor cron you can use the command instead of my_script.sh
-
-
-
@kiokoman Ok, thanks, will try that.