#!/usr/sbin/sh # # Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. . /lib/svc/share/smf_include.sh [ ! -f /etc/zones/global.xml ] && exit $SMF_EXIT_OK # No global zone # resource mgmt. # configuration [ ! -x /usr/sbin/zoneadm ] && exit $SMF_EXIT_OK # SUNWzoneu not installed # Make sure working directory is / to prevent unmounting problems. cd / PATH=/usr/sbin:/usr/bin; export PATH case "$1" in 'start') zoneadm -z global sysapply if [ $? -ne 0 ]; then exit $SMF_EXIT_ERR_FATAL fi ;; *) echo "Usage: $0 start" exit $SMF_EXIT_ERR_FATAL ;; esac exit $SMF_EXIT_OK