其中poweroff -p,相当于直接拔电源关机,可以用来模拟某些服务器hang的场景,可以通过man poweroff,了解参数含义, -p, --poweroff Power-off the machine...-P, --poweroff Power-off the machine (the default). -r, --reboot Reboot the machine....-k Do not halt, power-off, reboot, just write wall message....--no-wall Do not send wall message before halt, power-off, reboot. -c Cancel a pending shutdown.
--help Show this help --no-wall Don't send wall message before halt/power-off/reboot Commands...: 0 Power-off the machine 6 Reboot the machine 2, 3, 4, 5 Start runlevelX.target
SYSLOG+WALL+EXEC PIPEFN /etc/nut/upssched.pipe LOCKFN /etc/nut/upssched.lock AT ONBATT * START-TIMER power-off...60 AT ONLINE * CANCEL-TIMER power-off AT ONLINE * EXECUTE power-on 3.编辑upssched-cmd脚本 vim /etc/nut/...battery" # do somethings ,e.g.send email \ wechat /usr/sbin/upsmon -c fsd ;; power-off
SYSLOG+WALL+EXEC PIPEFN /etc/nut/upssched.pipe LOCKFN /etc/nut/upssched.lock AT ONBATT * START-TIMER power-off...60 AT ONLINE * CANCEL-TIMER power-off AT ONLINE * EXECUTE power-on 3.编辑upssched-cmd脚本 vim /etc/nut/upssched-cmd...# do somethings ,e.g.send email \ wechat /usr/sbin/upsmon -c fsd ;; power-off
Warning: Do Not Power-Off! ...Warning: Do Not Power-Off! ...Warning: Do Not Power-Off!
SYSLOG+WALL+EXEC PIPEFN /etc/nut/upssched.pipe LOCKFN /etc/nut/upssched.lock AT ONBATT * START-TIMER power-off...60 AT ONLINE * CANCEL-TIMER power-off AT ONLINE * EXECUTE power-on 3.编辑upssched-cmd脚本 vim /etc/nut/...# do somethings ,e.g.send email \ wechat /usr/sbin/upsmon -c fsd ;; power-off
SYSLOG+WALL+EXEC PIPEFN /etc/nut/upssched.pipe LOCKFN /etc/nut/upssched.lock AT ONBATT * START-TIMER power-off...60 AT ONLINE * CANCEL-TIMER power-off AT ONLINE * EXECUTE power-on 3.编辑upssched-cmd脚本 vim /etc/nut/upssched-cmd...battery" # do somethings ,e.g.send email \ wechat /usr/sbin/upsmon -c fsd ;; power-off
Broadcast message from root@vps.2daygeek.com (Mon 2018-10-08 06:41:31 EDT): The system is going down for power-off...Broadcast message from root@2daygeek.com (Mon 2018-10-08 06:41:31 EDT): The system is going down for power-off...Broadcast message from root@vps.2daygeek.com (Mon 2018-10-08 06:39:07 EDT): The system is going down for power-off
--help Show this help -H --halt Halt the machine -P --poweroff Power-off the machine...machine -h Equivalent to --poweroff, overridden by --halt -k Don't halt/power-off.../reboot, just send warnings --no-wall Don't send wall message before halt/power-off/reboot -...message from root@centos7.shadowlinuxer.org (Tue 2020-12-01 09:41:18 CST): The system is going down for power-off
│ time when the system boots from a power-off
> Broadcast message from root@centos-1 (Mon 2018-10-08 06:41:31 EDT): The system is going down for power-off
[root ~]# Broadcast message from root (Sun 2019-05-26 19:29:27 CST): The system is going down for power-off
G-sense Error Rate The count of errors resulting from externally-induced shock & vibration. 192 0xC0 Power-off...0xE3 Torque Amplification Count Count of attempts to compensate for platter speed variations 228 0xE4 Power-Off
相当与(umount /devsdc1) udisksctl power-off -b /dev/sdc1 //安全关闭驱动器 挂载光盘 mount mount [选项] []
Do not wait until operation finished --no-wall Don't send wall message before halt/power-off...Shut down and halt the system poweroff Shut down and power-off
TIMSK0 = _BV(OCIE0A); sei(); for (;;) { power_off_mode(); /* Power-off
3421008 Upgrade 3.4 kernel images to 1cc37bf 1cc37bf MIPS: Attach goldfish machine reset and power-off
Broadcast message from root@2daygeek.com (THU 2018-11-01 06:41:31 EDT): The system is going down for power-off
The system is going down for power-off at Tue 2018-12-11 09:59:26 CST!
领取专属 10元无门槛券
手把手带您无忧上云