File makedumpfile.service of Package kdump

[Unit]
Description=Save vmcore after kernel crash
Requires=boot-complete.target

[Service]
Type=oneshot
EnvironmentFile=/etc/kdump.conf
ExecStartPre=mkdir -p ${KDUMP_TARGET}/${INVOCATION_ID}
ExecStartPre=makedumpfile --dump-dmesg /proc/vmcore ${KDUMP_TARGET}/${INVOCATION_ID}/vmcore-dmesg.log
ExecStart=makedumpfile -${KDUMP_COMPRESSION} -d ${KDUMP_LEVEL} /proc/vmcore ${KDUMP_TARGET}/${INVOCATION_ID}/vmcore
ExecStopPost=systemctl reboot
UMask=0077
StandardInput=tty-force
StandardOutput=inherit
StandardError=inherit
openSUSE Build Service is sponsored by