Mike,
To get it to link, I needed to create a symbolic link at /usr/lib/libzonecfg.so -> libzonecfg.so.1. Time to go searching for linker options that I haven't needed before... I haven't looked into it, but for some reason I seem to get some useless events. Consider the following reboot: # ./notify foo 6 shutting_down running foo 6 shutting_down shutting_down foo 6 shutting_down shutting_down foo 6 shutting_down shutting_down foo 6 uninitialized shutting_down foo 7 ready uninitialized foo 7 ready ready foo 7 running ready I'm not sure why the newstate and oldstate would be the same.
This is a known problem. See bug 6377283. http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6377283
Thanks, Nick
In order for an approach using a program like the one above to be useful there would need to be some way to indicate what the desired state for the zone is in addition to the the state that it has just transitioned to. Mike
_______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org