[CentOS] Getting confirmation for power button

Thu Apr 25 13:46:19 UTC 2013
Giles Coochey <giles at coochey.net>

On 25/04/2013 14:43, Vanhorn, Mike wrote:
> Using CentOS 5.8:
> Currently on my workstations, when I press the power button the computer
> immediately does a 'shutdown -h now' (per /etc/acpid/events/power.conf).
> Is there a way to change it so that a confirmation dialog comes up, rather
> than an immediate shutdown?
> I assume that I am going to need to change that power.conf file to tell
> some program that the power button's been pressed, rather than making a
> call to shutdown, but I haven't been able to figure out what program to
> which I need to make a call.
You are talking about something that acpid is doing for you:



Giles Coochey, CCNP, CCNA, CCNAS
NetSecSpec Ltd
+44 (0) 7983 877438
giles at coochey.net