Power on/off computer using Arduino Yun

I know that BUT it's safer I think via arduino because it will wait 1 minute before turn off.
Many times power is comes back for seconds and falls again