Print this page
2594 implement graceful shutdown for local zones in zoneadm
*** 19,28 ****
--- 19,29 ----
#
# CDDL HEADER END
#
#
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+ # Copyright 2014 Nexenta Systems, Inc. All rights reserved.
. /lib/svc/share/smf_include.sh
#
# Return a list of running, non-global zones for which a shutdown via
*** 107,117 ****
echo "Shutting down running zones (for up to $MAXSHUT" \
"seconds):\c"
for zone in $zonelist; do
echo " $zone\c"
! zlogin -S $zone /sbin/init 0 < /dev/null >&0 2>&0 &
SHUTDOWN=1
done
[ $SHUTDOWN -eq 1 ] && echo "."
--- 108,118 ----
echo "Shutting down running zones (for up to $MAXSHUT" \
"seconds):\c"
for zone in $zonelist; do
echo " $zone\c"
! zoneadm -z $zone shutdown &
SHUTDOWN=1
done
[ $SHUTDOWN -eq 1 ] && echo "."