We have a Sun box that displays “Saving system state… Please wait…” overnight. Well, this is the power management kicking in. Not happy with servers, so we need to disable this. The behavior of the power management service is set in /etc/power.conf. We can disable the automatic shutdown by editing this file.
Change:
autoshutdown 30 9:00 9:00 shutdown |
To this:
autoshutdown 30 9:00 9:00 noshutdown |
Probably a better way to deal with this is to simply disable the service completely:
# mv /etc/rc2.d/S85power /etc/rc2.d/s85power |
Let’s see what is running:
# ps -ef | grep powe root 246 1 0 Dec 20 ? 0:00 /usr/lib/power/powerd root 1140 1111 0 01:46:05 pts/1 0:00 grep powe # |
Let’s reboot, and make sure our system doesn’t start the service again:
# ps -ef | grep powe root 376 374 0 01:55:13 pts/1 0:00 grep powe # |