So the problem was that the reboot(8M) command doesn't actually walk through the reverse SMF dependencies to stop, only the shutdown(1M) command does! I suppose, machine reboots happen by sending SIGINT signal and after 5 seconds the SIGKILL.
For now, I have a shell function that works as an alias to /usr/sbin/reboot but before doing that it sets autoboot to false. Most reboots are issued manually on terminal anyway! I guess I can put Nigel's logic into it :) On Sat, Nov 14, 2015 at 7:51 PM, Nigel W <[email protected]> wrote: > In your shutdown script that is setting autoboot to false, record the > uuids of the the machines that you did this to on disk. Then on startup > only start the ones in list from shutdown. > On Nov 14, 2015 5:51 AM, "Micky" <[email protected]> wrote: > >> Just came to mind, what if there are already some disabled zones with >> autoboot set to false. >> So I guess, there's no true hack to this then? LOL >> >> On Sat, Nov 14, 2015 at 5:47 PM, Micky <[email protected]> wrote: >> >>> >>> It's not very clean but it's better than patching svc-zones. I may or >>>> may not have done this in the past ;) >>>> >>> Haha. I think I'll go with it. Hopefully not re-inventing the wheel! ;) >>> >>> >>>> before I switched everything to lx-branded zones aside 1 bsd kvm. >>>> >>>> Regards >>>> >>>> Jorge >>>> >>>> >>> >> >> *smartos-discuss* | Archives > <https://www.listbox.com/member/archive/184463/=now> > <https://www.listbox.com/member/archive/rss/184463/25253051-d319687c> | > Modify > <https://www.listbox.com/member/?&> > Your Subscription <http://www.listbox.com> > > ------------------------------------------- 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
