Re: How to trap ctrl-alt-del?

From: Casper Ti. Vector <caspervector_at_gmail.com>
Date: Fri, 25 Nov 2016 16:26:55 +0800

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

> and assign a function to it, so that system nicely shuts down?

<http://skarnet.org/cgi-bin/archive.cgi?
        2:mss:1377:201608:hiocpcghpahbaiedeihc>
<https://www.mail-archive.com/
         supervision_at_list.skarnet.org/msg01344.html>
The second is an alternative link in case the server returns an empty
reply, which is happening to me:

> % curl -vsS 'http://www.skarnet.org/cgi-bin/archive.cgi?2'
> * Trying 2001:4b98:dc0:41:216:3eff:fe4f:d7aa...
> * TCP_NODELAY set
> * Trying 92.243.1.28...
> * TCP_NODELAY set
> * Connected to www.skarnet.org (2001:4b98:dc0:41:216:3eff:fe4f:d7aa)
> * port 80 (#0)
> > GET /cgi-bin/archive.cgi?2 HTTP/1.1
> > Host: www.skarnet.org
> > User-Agent: curl/7.51.0
> > Accept: */*
> >
> * Curl_http_done: called premature == 0
> * Empty reply from server
> * Connection #0 to host www.skarnet.org left intact
> curl: (52) Empty reply from server

-- 
My current OpenPGP key:
RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19)
7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C
Received on Fri Nov 25 2016 - 08:26:55 UTC

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