On 6/6/16 10:40 , Gareth Howell wrote: > I’m monitoring this with interest. > > If I issue a shutdown to the global zone on the server, will the zones have > had the chance to do a graceful shutdown before the global zone shuts down?
That will depend on the exact commands that you issue. It certainly is possible though. Robert >> On 5 Jun 2016, at 06:47, John Croix <[email protected]> wrote: >> >> Thanks for all of the cool suggestions. Looks like I have several >> opportunities to explore. Since I have a RPi running dnsmasq and pound, I >> might go with that approach (RPi sending shutdown command to the global zone >> via ssh). I could cleanly shut the RPi down, too, which would be nice >> considering that I've already had issues with the memory card and ungrateful >> reboots. >> >> Regards, >> John >> >> Sent from my iPad >> >>> On Jun 3, 2016, at 10:40 PM, John Croix <[email protected]> wrote: >>> >>> I'm currently sitting in the dark in my house without power, pondering the >>> need for an automatic means to shutdown my SmartOS server. When power went >>> off, I raced upstairs to manually shut it down prior to draining the UPS, >>> and I'd like to avoid a repeat scenario. >>> >>> It seems like the best way to do this might be to have a dedicated LX zone >>> that runs the APC UPS daemon software. I can use it to touch a file when >>> required, and, in the global zone, monitor the file system for the presence >>> of that file. When the file appears, a power off command is issued. I just >>> need to be able to have the local zone access the UPS via USB connection. >>> Access to the LX file system from the global zone for monitoring is >>> obviously not an issue. >>> >>> In short, I need to find out how to do the following: >>> Determine which device in the global zone the UPS is attached to via USB >>> cable >>> Pass the device down to a local zone (I assume via some zonecfg commands) >>> Determine which device to point the daemon to in the local zone >>> Can anybody provide some info concerning the above issues? >>> >>> Thanks in advance, >>> John >>> >>> Sent from my iPad >>> >> >> ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
