# restart server for a 'executing /sbin/shutdown' automatic

**URL:** <https://forums.suse.com/t/restart-server-for-a-executing-sbin-shutdown-automatic/23972>\
**Category:** SLES Configure-Administer\
**Created:** [May 14, 2013, 11:28pm UTC](https://forums.suse.com/t/restart-server-for-a-executing-sbin-shutdown-automatic/23972 "2013-05-14T23:28:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flako000](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@Flako000](https://forums.suse.com/u/Flako000)\
**Post date:** [May 14, 2013, 11:28pm UTC](https://forums.suse.com/t/restart-server-for-a-executing-sbin-shutdown-automatic/23972/1 "2013-05-14T23:28:44Z")

</div>

Hello,  
A few days ago I restart in an “automatic” one server HP ProLiant DL 120 G5, you have installed SLES 11 SP1, I did not find the reason. only in the /var/log/ message shows:

‘myServer pm-profiler: Power Button pressed, executing /sbin/shutdown -h now’

Searching the web, I could guide the search to something associated with apci, but nothing conclusive. acpi log increase but honestly I do not notice increased log in /var/log/acpi.log.

In that should focus the search for this error?  
Thank you.  
(this is written by translate.google)

---

<div class="post-metadata">

**Author:** ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)\
**Post date:** [May 22, 2013, 4:31pm UTC](https://forums.suse.com/t/restart-server-for-a-executing-sbin-shutdown-automatic/23972/2 "2013-05-22T16:31:34Z")

</div>

[QUOTE=Flako000;13615]Hello,  
A few days ago I restart in an “automatic” one server HP ProLiant DL 120 G5, you have installed SLES 11 SP1, I did not find the reason. only in the /var/log/ message shows:

‘myServer pm-profiler: Power Button pressed, executing /sbin/shutdown -h now’

Searching the web, I could guide the search to something associated with apci, but nothing conclusive. acpi log increase but honestly I do not notice increased log in /var/log/acpi.log.

In that should focus the search for this error?  
Thank you.  
(this is written by translate.google)[/QUOTE]

I’m not sure what you are looking for… with the event you’ve already figured out that the shutdown was initiated by a pressing the power button (physically on the machine, or remotely via iLO).

If you’d like to disable this feature, you can edit out the action in /etc/acpi/events/power\_button (so it does not call the shutdown script) - or add another action in there to call a custom script to have it do what you want (instead of just doing the shutdown).

Hope that helps,  
Willem

---

<div class="post-metadata">

**Author:** ![Flako000](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@Flako000](https://forums.suse.com/u/Flako000)\
**Post date:** [May 22, 2013, 10:51pm UTC](https://forums.suse.com/t/restart-server-for-a-executing-sbin-shutdown-automatic/23972/3 "2013-05-22T22:51:50Z")

</div>

Hello magic31  
It is assumed that no one pressed the button “Power” was in the morning (there were no people at that time)

Searching the internet I found that maybe the acpi module turn it off (because I decided for some event).  
Discuss the option of commenting on power\_button script code, but if I comment the line of code, it stops working the power button (and do not want to lose the option to shut down the computer from the button)

What I have in mind is to increase the log level of acpi, to see which produces this (if it happens again)

Thanks for responding.

---

<div class="post-metadata">

**Author:** ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)\
**Post date:** [May 23, 2013, 12:39pm UTC](https://forums.suse.com/t/restart-server-for-a-executing-sbin-shutdown-automatic/23972/4 "2013-05-23T12:39:26Z")

</div>

[QUOTE=Flako000;13697]…  
What I have in mind is to increase the log level of acpi, to see which produces this (if it happens again)  
[/QUOTE]

I don’t know what exactly can be tuned on logging levels for this service (and the modules it uses)… other than the system reporting a button call if the module is active.  
/etc/init.d/acpid does not give any clues I can see.

Possibly a custom pm-profiler (the general power management module present in the kernel) could maybe help here. Haven’t done any tuning with that bit before.

I’ll see if I can find some more info on this subject.

-Willem

---

<div class="post-metadata">

**Author:** ![Flako000](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@Flako000](https://forums.suse.com/u/Flako000)\
**Post date:** [May 23, 2013, 2:48pm UTC](https://forums.suse.com/t/restart-server-for-a-executing-sbin-shutdown-automatic/23972/5 "2013-05-23T14:48:22Z")

</div>

Thanks I will read about pm-profiler
