Problems using shutdown -u command


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Problems using shutdown -u command
# 1  
Old 04-01-2010
Problems using shutdown -u command

I have a smart-ups connected to my OS X Snow Leopard server ver. 10.6. Based on the docs and forums I read, I have been trying to use the software provided by APC, PCNS. I have also tried to just use the UPS communications cable provided and use the OS' "UPS options". Neither of them work exactly how I need them to.

Here are the issues:

1. If I use the UPS options built in the server, it performs a soft shutdown. Once power is restored to the UPS, the server does not turn back on even though the option is set to power back on after a power outtage. (I understand this because the server had a soft shutdown and not a hard or dirty shurdown which causes the server to reboot once power is restored.

2. If I use PCNS (provided by APC), it will perform a soft shutdown but once again, it will not restart once power is restored to the UPS. There is a doc. mentioning on how to "fix" this. I change the shutdown command initiated by PCNS. The only thing this does is allow for a hard or dirty shutdown. Great, now it reboots once power is restored to the UPS... Problem is, I still need to have a soft shutdown so my VM's will shutdown properly.

3. The command I change from APC is a script that calls for the OS shutdown. The default is shutdown -h now. According to APC, I change this to shutdown -f now. (I never saw the -f option in any man page or Apple doc.) I did find one posting and also in several docs about the -u option. The problem here is that it seems to now work.

4. I perform a shutdown command with the -u command and it will not halt the power supplies for 5 min. before shutting down. If I try the command sudo shutdown -u the response is that I am missing a required option such as -h or -r.

So, I am at an impasse. I need to have my OS X server perform a soft shutdown AND power back up after power has been restored. Right now, it seems I can have either or, and that is not a very enticing resolution....

Any suggestions are most welcome. THanks!Smilie
# 2  
Old 04-05-2010
I just use the built in settings in System Preferences for my servers and it seems to work. Sometimes they will hang on shutdown though and will have to be cycled manually. Under the power options in System Preferences
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue with shutdown command in script (MacOS High Sierra)

Hello, I have a backup script that runs an rsync backup to an external drive. I use the script frequently on Windows and Linux and have installed it on a Mac. The script has an option to run shutdown after the backup has completed. Since backup can take hours to run, this is an option that is... (10 Replies)
Discussion started by: LMHmedchem
10 Replies

2. UNIX for Beginners Questions & Answers

Linux SuSE SLES 8 error..unable to issue shutdown command

the only way we can power off is if we actually press power button on server. Running on HP DL-G4. from root, when we issue command it just returns to root prompt. (1 Reply)
Discussion started by: amexboy
1 Replies

3. Shell Programming and Scripting

Exit script when shutdown or reboot command is given

This is probably a simple question, but I'm new with writing scripts for Linux (IPFire in this case) and Google wasn't helpful with this. When creating a script, what is the best and/or proper way to have it exit automatically if the reboot or shutdown command is given? If that's even... (2 Replies)
Discussion started by: bartgrefte
2 Replies

4. Red Hat

cronjob Command for Shutdown

Hi Guys Pls give me cronjob command for Network pcs to be shutDown on 06:05 PM is it possible to do in cronjob ? :wall: (7 Replies)
Discussion started by: babinlonston
7 Replies

5. AIX

Shutdown command

Hi, is there a difference between shutdown -Fand shutdown -h now? (3 Replies)
Discussion started by: x_adm
3 Replies

6. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

7. AIX

shutdown command

Hi, After issuing shutdown -F or shutdown -F now my server is getting restarted. Any Idea? (3 Replies)
Discussion started by: manoj.solaris
3 Replies

8. Solaris

shutdown question from command line

solaris 10 logged in as root to command line...want to shut the system down....could not do this....when i chose shutdown the system seemed to squawk at me saying i'd lose whatever i was working on would be lost unless i logged out...after proceeding through this it took me to the gui log in... (6 Replies)
Discussion started by: drisnya
6 Replies

9. UNIX for Dummies Questions & Answers

Help unable to shutdown- RPC problems

Help unable to shutdown- RPC problems I seem to have consistent problems shuting down whichever init state I use basically I get the following errors messages followed by a return to the prompt # shutdown -i6 -g0 -y Shutdown started. Tue Oct 1 09:47:03 BST 2002 Broadcast Message from... (1 Reply)
Discussion started by: vviscomi
1 Replies

10. UNIX for Dummies Questions & Answers

Help unable to shutdown- RPC problems

I seem to have consistent problems shuting down whichever init state I use basically I get the following errors messages followed by a return to the prompt # shutdown -i6 -g0 -y Shutdown started. Tue Oct 1 09:47:03 BST 2002 Broadcast Message from root (pts/1) on hermione Tue Oct 1... (3 Replies)
Discussion started by: MBGPS
3 Replies
Login or Register to Ask a Question