Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: EddieA on September 25, 2012, 12:18:20 am

Title: Command line shutdown/power off
Post by: EddieA on September 25, 2012, 12:18:20 am
I'm looking at configuring a UPS to shut down my system should it transfer to a UPS.

Is "poweroff" sufficient, or is there a script which will do a controlled shutdown of services prior to a power down.

I should add that this is currently 2.2, but will be moving to 3.0 at some point.

Cheers.
Title: Re: Command line shutdown/power off
Post by: browley on September 25, 2012, 06:53:36 pm
Try the shutdown command:

Code: [Select]
sudo shutdown -h now
You can also give it a time by giving it a time in minutes instead of now above.  This should bring down all the services "nicely".  Good luck!
Title: Re: Command line shutdown/power off
Post by: tanseeq on January 20, 2021, 01:08:07 pm
sudo shutdown -h now

is this correct command to properly shutdown zentyal 5.0 machine?
Title: Re: Command line shutdown/power off
Post by: BerT666 on January 21, 2021, 09:12:52 am
Hi,

most UPS'es I know have something like a client to do a clean shutdown when the primary powersource fails.
e.g. APC uses "PowerChute"...

Best Bert
Title: Re: Command line shutdown/power off
Post by: doncamilo on January 22, 2021, 11:46:03 am
 :)

Did you think about UPower?

https://upower.freedesktop.org/docs/UPower.html (https://upower.freedesktop.org/docs/UPower.html)

Cheers!