Sponsored Content
Operating Systems OS X (Apple) Problems using shutdown -u command Post 302409447 by mckorn99 on Thursday 1st of April 2010 07:46:16 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. AIX

Shutdown command

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

7. 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

8. 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

9. 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

10. 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
UPSDRVCTL(8)							    NUT Manual							      UPSDRVCTL(8)

NAME
upsdrvctl - UPS driver controller SYNOPSIS
upsdrvctl -h upsdrvctl [OPTIONS] {start | stop | shutdown} [ups] DESCRIPTION
upsdrvctl provides a uniform interface for controlling your UPS drivers. You should use upsdrvctl instead of direct calls to the drivers whenever possible. When used properly, upsdrvctl lets you maintain identical startup scripts across multiple systems with different UPS configurations. OPTIONS
-h Display the help text. -r directory If starting a driver, this value will direct it to chroot(2) into directory. This can be useful when securing systems. This may be set in the ups.conf with "chroot" in the global section. -t Enable testing mode. This also enables debug mode. Testing mode makes upsdrvctl display the actions it would execute without actually doing them. Use this to test out your configuration without actually doing anything to your UPS drivers. This may be helpful when defining the sdorder directive in your ups.conf(5). -u username If starting a driver, this value will direct it to setuid(2) to the user id associated with username. If the driver is started as root without specifying this value, it will use the username that was compiled into the binary. This defaults to "nobody", and is far from ideal. This may be set in ups.conf with "user" in the global section. -D Raise the debug level. Use this multiple times for additional details. COMMANDS
upsdrvctl supports three commands - start, stop and shutdown. They take an optional argument which is a UPS name from ups.conf(5). Without that argument, they operate on every UPS that is currently configured. start Start the UPS driver(s). stop Stop the UPS driver(s). shutdown Command the UPS driver(s) to run their shutdown sequence. Drivers are stopped according to their sdorder value - see ups.conf(5). Warning this will probably power off your computers, so don't play around with this option. Only use it when your systems are prepared to lose power. ENVIRONMENT VARIABLES
NUT_CONFPATH is the path name of the directory that contains upsd.conf and other configuration files. If this variable is not set, upsdrvctl the driver use a built-in default, which is often /usr/local/ups/etc. DIAGNOSTICS
upsdrvctl will return a nonzero exit code if it encounters an error while performing the desired operation. This will also happen if a driver takes longer than the maxstartdelay period to enter the background. SEE ALSO
nutupsdrv(8), upsd(8), ups.conf(5) Internet resources: The NUT (Network UPS Tools) home page: http://www.networkupstools.org/ Network UPS Tools 05/21/2012 UPSDRVCTL(8)
All times are GMT -4. The time now is 08:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy