You can also run apcupsd in the global zone: https://www.mail-archive.com/smartos-discuss@lists.smartos.org.email.enqueue.archive.listbox.com/msg00426.html
I think the driver IDs are correct as shipped nowadays, obviating the need for update_drv. //jb > On 04 Jun 2016, at 05:40, 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
