class Process::Daemon

def crashed?

Check the last few lines of the log file to find out if the daemon crashed.
def crashed?
	count = 3
	
	LogFile.open(log_file_path).tail_log do |line|
		return true if line.match("=== Daemon Crashed")
		break if (count -= 1) == 0
	end
	return false
end