[CentOS] Gracefully powering off system in case of power failure

Jatin Davey jashokda at cisco.com
Sat Jul 4 08:26:41 UTC 2015


On 7/4/2015 1:32 PM, Jatin Davey wrote:
> On 7/4/2015 1:07 PM, John R Pierce wrote:
>> On 7/4/2015 12:28 AM, Jatin Davey wrote:
>>>>
>>> My server supports ACPI 4.0 standard , Will that be helpful ? 
>>
>> does `init 0` as a root command cause it to gracefully shut down and 
>> power off ?      thats all the ACPI support you need.
> [Jatin] Yes, init 0 does gracefully shutdown the server and power off.
>>
>>
>> what brand/model UPS (battery backup) do you have ?
> [Jatin] I am still reading through the documentation of my server to 
> find out the battery backup in it. Is there any command within the OS 
> that i can use to find out this information ?
>> the UPS software, apcupsd and/or NUT, needs to listen to the UPS to 
>> tell it when the power has failed, then it can tell your OS to 
>> shutdown after a suitable delay (if your UPS is good for 30 minutes, 
>> you might not want to shut down until the power has failed for 15 
>> minutes, so brief outages don't cause a shutdown)
>>
>>
>>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

I dont seem to have a battery in my server.

**********************************
[root at node-103 ~]# ls /proc/acpi/battery/
[root at node-103 ~]#
**********************************

Thanks
Jatin




More information about the CentOS mailing list