@reboot /path/to/command@reboot 在这里是算作一个特殊的时间,后面就只能接命令,不能再设置别的时间了。 man 5 crontab 可以看到还有其它的,比如我这边的 linux 里面显示有以下八个: string meaning ------ ------- @reboot Run once, at startup. @yearly Run once a year, "0 0 1 1 *". @annually (same as @yearly) @monthly Run once a month, "0 0 1 * *". @weekly Run once a week, "0 0 * * 0". @daily Run once a day, "0 0 * * *". @midnight (same as @daily) @hourly Run once an hour, "0 * * * *".
@reboot/usr/bin/ethtool -s enp2s0 wol g #重启后设备网卡可以关机唤醒