Re: How to trap ctrl-alt-del?

From: Colin Booth <cathexis_at_gmail.com>
Date: Fri, 25 Nov 2016 01:28:57 -0800

On Nov 25, 2016 3:53 AM, "Casper Ti. Vector" <caspervector_at_gmail.com> wrote:
>
> On Fri, Nov 25, 2016 at 11:07:15AM +0300, Jean Louis wrote:
> > How may I trap ctrl-alt-del,
>
> $ sysctl kernel.ctrl-alt-del=0
This is a bit misleading since most (all?) default builds of linux already
have kernel.ctrl-alt-del set to zero.
>
> > and assign a function to it, so that system nicely shuts down?
>
> <https://www.mail-archive.com/supervision_at_list.skarnet.org/msg01344.html>
Also found in the s6-svscan docs under SIGNALS:
http://www.skarnet.org/software/s6/s6-svscan.html

Cheers!
-Colin
Received on Fri Nov 25 2016 - 09:28:57 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC