--- README.Debian       2016-11-19 07:17:12.657166692 +0800
+++ README.Debian.NEW   2016-11-19 07:25:48.293169579 +0800
@@ -45,6 +45,16 @@
 and then get more detailed information with "systemctl status -l foo.service"
 to get a service "foo"'s status and recent logging.
 
+To make a /shutdown-log.txt file on Debian:
+1. boot with the debug options:
+    systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M enforcing=0
+2. save the following script as /lib/systemd/system-shutdown/debug.sh and make 
it executable:
+    #!/bin/sh
+    mount -o remount,rw /
+    dmesg > /shutdown-log.txt
+    mount -o remount,ro /
+3. reboot
+
 Enable and use networkd
 =======================
 networkd is a small and lean service to configure network interfaces, designed

Reply via email to