Ubuntu开启core dump

时间:2025-03-21 07:39:20
#!/bin/sh -e # # # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. ulimit -c unlimited echo 1 > /proc/sys/kernel/core_uses_pid if [ -x /bin/plymouth ]; then plymouth message --text='Installing VMware Tools. Please wait...'; else chvt 2 </dev/tty0 >/dev/tty0; fi cd /opt/vmware-tools-installer ./run_upgrader.sh mv /etc/ /etc/ mv /etc/ /etc/issue mv /opt/vmware-tools-installer/S*gdm /etc// 2>/dev/null || true mv /opt/vmware-tools-installer/S*kdm /etc// 2>/dev/null || true mv /opt/vmware-tools-installer/S*kdm-kde4 /etc// 2>/dev/null || true mv /opt/vmware-tools-installer/* /etc/init/ 2>/dev/null || true rm -rf /opt/vmware-tools-installer chvt 1 < /dev/tty0 > /dev/tty0 (/sbin/initctl start lightdm || /sbin/initctl start gdm || /etc/init.d/gdm restart || /etc/init.d/kdm restart || /etc/init.d/kdm-kde4 restart) 2>/dev/null