summaryrefslogtreecommitdiff
path: root/usr/src/cmd/zoneadm/svc-resource-mgmt
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2019-08-01 13:52:59 +0000
committerJohn Levon <john.levon@joyent.com>2019-08-01 13:52:59 +0000
commitd0ca2b08e18a06d653279357d3fa022c0e12b0bf (patch)
treee092c37e6937874abecc2e7dc42246c53651b188 /usr/src/cmd/zoneadm/svc-resource-mgmt
parent7f874eb65f07035e3f808d58a70ad712248fde0a (diff)
downloadillumos-joyent-d0ca2b08e18a06d653279357d3fa022c0e12b0bf.tar.gz
OS-7685 smartos-live overlay should be merged into illumos-joyent
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Mike Gerdts <mike.gerdts@joyent.com> Approved by: Mike Gerdts <mike.gerdts@joyent.com>
Diffstat (limited to 'usr/src/cmd/zoneadm/svc-resource-mgmt')
-rw-r--r--usr/src/cmd/zoneadm/svc-resource-mgmt14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr/src/cmd/zoneadm/svc-resource-mgmt b/usr/src/cmd/zoneadm/svc-resource-mgmt
index 762de4c0d8..57fd21c3d9 100644
--- a/usr/src/cmd/zoneadm/svc-resource-mgmt
+++ b/usr/src/cmd/zoneadm/svc-resource-mgmt
@@ -22,25 +22,19 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-
-# ident "%Z%%M% %I% %E% SMI"
-#
+# Copyright 2012 Joyent, Inc. 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
+smf_is_globalzone || exit $SMF_EXIT_OK
+
case "$1" in
'start')
- zoneadm -z global apply
+ prctl -r -n zone.cpu-shares -v 65535 -t priv -i zone global
if [ $? -ne 0 ]; then
exit $SMF_EXIT_ERR_FATAL
fi