add
This commit is contained in:
15
998-常用脚本/重启服务器恢复/3-restore_from_reboot.timer
Normal file
15
998-常用脚本/重启服务器恢复/3-restore_from_reboot.timer
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Run restore_from_reboot 10s after boot
|
||||
|
||||
[Timer]
|
||||
OnBootSec=10
|
||||
Unit=restore_from_reboot.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
# /etc/systemd/system/restore_from_reboot.timer
|
||||
# sudo systemctl daemon-reload
|
||||
sudo systemctl enable restore_from_reboot.timer
|
||||
journalctl -u restore_from_reboot -n 150 -f
|
||||
Reference in New Issue
Block a user