From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 10:52:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64D191065670 for ; Thu, 8 Jul 2010 10:52:54 +0000 (UTC) (envelope-from ait@rocc.ru) Received: from mail.rocc.ru (mail.rocc.ru [194.84.181.131]) by mx1.freebsd.org (Postfix) with ESMTP id CCED58FC1D for ; Thu, 8 Jul 2010 10:52:53 +0000 (UTC) Received: from freebsd.wsru.t2ru ([10.77.44.133]) by mail.rocc.ru (peer1) with ESMTP id o68ATx7c044341; Thu, 8 Jul 2010 14:29:59 +0400 (MSD) (envelope-from ait@rocc.ru) Message-ID: <4C35A8A7.1020103@rocc.ru> Date: Thu, 08 Jul 2010 14:29:59 +0400 From: ait User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.10) Gecko/20100708 Thunderbird/3.0.5 MIME-Version: 1.0 To: Gilles References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: [6.3] Get e-mail when CTRL-ALT-DEL is used? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2010 10:52:54 -0000 On 07/08/2010 14:12, Gilles wrote: > Hello > > This is on a remote 6.3 host: I'd like to get an e-mail if a user hits > the CTRL-ALT-DEL to reboot the server. > > Googling told me that the use of the three-key combo can be > enabled/disabled when compiling a new kernel, but not how to manage > this feature when it's enabled in a running kernel. > > Is there a configuration file somewhere that would let me add e-mail > support for this action? > > Thank you. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Maybe you can use the /etc/rc.shutdown script, there's a line at the end of it: ... # Insert other shutdown procedures here ... Best wishes, Dmitry.