Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!news.mathworks.com!fu-berlin.de!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to trap CTRL-ALT-DEL Date: 19 May 1996 12:46:31 GMT Organization: Private BSD site, Dresden Lines: 27 Message-ID: <4nn577$1ii@uriah.heep.sax.de> References: <319CF9D2.41C6@ucdavis.edu> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Michael White <mdwhite@ucdavis.edu> wrote: > Okay, after a month and a half of wrangling with Linux and FreeBSD > I finally get FreeBSD 2.1 to work with my hardware (Linux refused). > Now, a friend tells me that CTRL-ALT-DEL should be trapped by the > system and execute a shutdown -r now. It doesn't. My partitions > are gone. So I have a question: how does one trap the CTRL-ALT-DEL > so that it won't trash my system? ctrl-alt-del executes the function ``shutdown_nice()'' inside the console driver. It is expected to send a signal to the running init(8) program in order to get the system rebooted. It used to work fine in multiuser mode, but had a few problems in particular in situations (like UserConfig) where init wasn't even running yet. ``My partitions are gone.'' Can you explain this in more detail? Even for a total crash (or a power-cycle), the system is not supposed to write anything dangerous to your disk. The only anticipated problem is that your file systems are unclean and need repair (and might have lost data that wasn't on the disk yet). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)