aboutsummaryrefslogtreecommitdiffstats
path: root/doc/bin/set-ctrlaltdel.html
blob: ef8c0142058bb41fd19cadcbf1f8aa74b3a09ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
	<head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    	<meta http-equiv="Content-Language" content="en" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    	<title>set-ctrlaltdel</title>
    	<meta name="Description" content="Reference of the set-ctrlaltdel program." />
    	<meta name="Keywords" content="linux linux-supplements shutdown init" />
	</head>
	<header>
		<p>
			<a href="//0x53.net/software/linux-supplements">linux-supplements</a>
			<br />
			<a href="//0x53.net/software">Software</a>
			<br />
			<a href="//0x53.net">0x53.net</a>
		</p>
	</header>
	<body>
		<h1>The set-ctrlaltdel program</h1>
		<p>
			set-ctrlaltdel sets the action done upon pressing the
			<code>CTRL + ALT + DEL</code> key combination.
		</p>
		<h2>Interface</h2>
		<pre>     set-ctrlaltdel -h | -s</pre>
		<h2>Options</h2>
		<ul>
			<li>
				<code>-h</code>: Instruct the Linux Kernel to instantly reboot
				without a proper shutdown sequence upon pressing the key combination.
			</li>
			<li>
				<code>-s</code>: Instruct the Linux Kernel to send SIGINT
				to init (PID 1), which, in the case of
				<a href="//0x53.net/software/goetia">goetia</a>,
				initiates an orderly shutdown sequence.
			</li>
		</ul>
		<h2>Exit codes</h2>
		<ul>
			<li>
				100: wrong usage.
			</li>
			<li>
				111: system call failed.
			</li>
		</ul>
	</body>
</html>