To disable/enable automatic shutdown in Solaris, Use these steps
Step1) Edit the power.conf file .
# vi /etc/power.conf

Change the specified line:

# Auto-Shutdown Idle(min) Start/Finish(hh:mm) Behavior
autoshutdown 30 9:00 9:00 default

Make these changes

noautoshutdown 30 9:00 9:00 default

Step2) To check the service status:

svcs -a | grep power

output: Online 13:22:37 svc:/system/power:default

Step3) Disable the service

svcadm disable power

by checking the output by step 1 you will get the status as “disabled”.

To enable the service use , #svcadm enable power

on checking the output by step 1 you will get the status as “online”.

Step 4) To check whether the service is runningor not is running by ps command

ps -eaf | grep power

output:

root 142 1 0 Nov 18 ? 0:00 /usr/lib/power/powerd
root 3019 2930 0 13:29:12 pts/2 0:00 grep power

Step5) reboot the system for the changes be effective

after reboot check again,

ps -eaf | grep power

output:

root 3019 2930 0 13:35:12 pts/2 0:00 grep power

or else move the /usr/lib/power/powerd with a different name in different location.

Share/Save/Bookmark

Tagged with:

Filed under: GeneralSolaris

Like this post? Subscribe to my RSS feed and get loads more!