14 start_cmd="savecore_start"
15 start_precmd="savecore_prestart"
20 # ${DUMPDIR} should be a directory or a symbolic link
21 # to the crash directory if core dumps are to be saved.
23 DUMPDIR="${dumpdir:-/var/crash}"
25 # Quit if we have no dump device
28 debug 'No dump device. Quitting.'
32 dumpdev=`/bin/realpath /dev/dumpdev`
36 # If there is no crash directory set it now
46 if [ ! -c "${dumpdev}" ]; then
47 warn "Dump device does not exist. Savecore not run."
51 if [ ! -d "${dumpdir}" ]; then
52 warn "Dump directory does not exist. Savecore not run."
60 echo "Checking for core dump on ${dumpdev}..."
61 savecore ${savecore_flags} ${DUMPDIR} ${dumpdev}