Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My Server shutsdown . Evertime at midnight.

The acpi Event power_button is triggered. at /etc/acpi/events/power_button
power_button:

# care about the power button
event=button/power.*
action=/usr/lib/acpid/power_button

How can i find out the "Caller" or the Trigger of this event ?

share|improve this question
add comment

2 Answers

Depends exactly on your flavour of linux, but I've found this helpful in the past:

/var/log/acpi.log

Also using "lastcomm" to find the preceding processes.

share|improve this answer
add comment

power_button is a script, so all you need is to save executing backtrace from that script. The idea is to write a script that analyzes processes tree from launched power_button upwards and the caller process should be somewhere within.

See this answer. Put the script into /usr/lib/acpid/power_button and save its output to a file: that should identify the offender unless the reason is not a data-center's cleaner guy :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.