Difference between revisions of "Shutdown"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
shutdown | shutdown | ||
+ | |||
+ | [[shutdown -c]] | ||
+ | |||
+ | == Example == | ||
+ | shutdown | ||
Broadcast message from root@MYNEWVM on pts/1 (Fri 2023-03-31 17:00:00 CEST): | Broadcast message from root@MYNEWVM on pts/1 (Fri 2023-03-31 17:00:00 CEST): | ||
The system is going down for poweroff at Fri 2023-03-31 17:01:00 CEST! | The system is going down for poweroff at Fri 2023-03-31 17:01:00 CEST! | ||
− | Shutdown scheduled for Fri 2023-03-31 17:01:00 CEST, use 'shutdown -c' to cancel | + | Shutdown scheduled for Fri 2023-03-31 17:01:00 CEST, use '[[shutdown -c]]' to cancel |
grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' [[/var/log/syslog]] | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups' | grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' [[/var/log/syslog]] | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups' |
Revision as of 14:16, 23 June 2023
This article is a Draft. Help us to complete it.
shutdown
shutdown -c
Example
shutdown Broadcast message from root@MYNEWVM on pts/1 (Fri 2023-03-31 17:00:00 CEST): The system is going down for poweroff at Fri 2023-03-31 17:01:00 CEST! Shutdown scheduled for Fri 2023-03-31 17:01:00 CEST, use 'shutdown -c' to cancel grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' /var/log/syslog | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' /var/log/messages /var/log/syslog /var/log/apcupsd* | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
Related commands
systemd-update-utmp reboot systemd-update-utmp shutdown
LOG: received fast shutdown request
See also
reboot, poweroff, halt
, ACPI,systemctl reboot, shutdown, needrestart, needs-restarting
- Logs, Log collector, log management, log explorer, Linux logging,
docker logs
,minikube logs
, Vector, Logstash, Filebeat, promtail, logfmt, Elasticsearch, fluentd, Mezmo (LogDNA), Scalyr, Loggly, Loki,tlog, cockpit
, NXLog, Winston, Amazon CloudWatch Logs Insights, Logz.io, Logflare, Coralogix
Advertising: