Print this page
2594 implement graceful shutdown for local zones in zoneadm
@@ -19,10 +19,11 @@
#
# 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,11 +108,11 @@
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 &
+ zoneadm -z $zone shutdown &
SHUTDOWN=1
done
[ $SHUTDOWN -eq 1 ] && echo "."