Gentoo Archives: gentoo-user

From: Fernando Rodriguez <frodriguez.developer@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to poweroff the system from user?
Date: Sat, 21 Mar 2015 23:04:28
Message-Id: 3252198.2NHgEmd5j1@navi
In Reply to: Re: [gentoo-user] How to poweroff the system from user? by Emanuele Rusconi
1 On Saturday, March 21, 2015 11:52:45 PM Emanuele Rusconi wrote:
2 > Ctrl-Alt-Del can be set to do what you want.
3 >
4 > I have this in my /etc/inittab:
5 >
6 > ca:12345:ctrlaltdel:/sbin/shutdown -P now
7 >
8 > This way Ctrl-Alt-Del calls power off instead of reboot.
9 > So to shutdown I just exit from Openbox and press Ctrl-Alt-Del.
10 >
11 > -- Emanuele Rusconi
12
13 Also sysvinit specific.
14 On systemd you need to copy /usr/lib/systemd/system/ctrl-alt-del.target to
15 /etc/systemd/system and edit that file.
16
17 --
18 Fernando Rodriguez

Attachments

File name MIME type
signature.asc application/pgp-signature