PSARC 2015/535 OpenStack service updates for Kilo
PSARC 2015/458 aioeventlet - asyncio event loop scheduling callbacks in eventlet
PSARC 2015/460 msgpack - C/Python bindings for MessagePack (de)serializer data
PSARC 2015/466 openstackclient - OpenStack Command-line Client
PSARC 2015/467 oslo.versionedobjects - Oslo Versioned Objects library
PSARC 2015/468 pint - A physical quantities module
PSARC 2015/469 pysaml2 - A pure Python implementation of SAML2
PSARC 2015/471 semantic_version - A library implementing the 'SemVer' scheme
PSARC 2015/472 testresources - PyUnit extension for managing expensive test resources
PSARC 2015/473 testscenarios - Extensions to Python unittest to support scenarios
PSARC 2015/474 trollius - Port of the Tulip project (asyncio module, PEP 3156) on Python 2
PSARC 2015/475 urllib3 - HTTP library with thread-safe connection pooling, file post, and more
PSARC 2015/520 oslo.concurrency - Oslo Concurrency library
PSARC 2015/521 oslo.log - Oslo Logging Configuration library
PSARC 2015/529 oslo.policy - Oslo Policy library
PSARC 2015/530 psutil - Python system and process utilities
PSARC 2015/538 fixtures - Python module to support reusable state for writing clean tests
PSARC 2015/539 sqlparse - An SQL parser module for Python
PSARC 2016/017 extras - Useful extra utilities for Python
PSARC 2016/018 linecache2 - Port of the standard linecache module
PSARC 2016/019 python-mimeparse - Basic functions for parsing mime-types
PSARC 2016/020 testtools - Extensions to the Python unit testing framework
PSARC 2016/021 traceback2 - Port of the standard traceback module
PSARC 2016/014 OpenStack Cinder NFS driver for Solaris
22384068 OpenStack service updates for Kilo (Umbrella)
21974208 The Python module msgpack should be added to Userland
22010630 The Python trollius module should be added to Userland
22011755 The Python module pint should be added to Userland
22012256 The Python aioeventlet module should be added to Userland
22012282 The Python oslo.versionedobjects module should be added to Userland
22012317 The Python semantic_version module should be added to Userland
22012321 The Python testresources module should be added to Userland
22012329 The Python testscenarios module should be added to Userland
22012336 The Python urllib3 module should be added to Userland
22012343 The Python openstackclient module should be added to Userland
22299389 The Python oslo.concurrency module should be added to Userland
22299409 The Python oslo.log module should be added to Userland
22299418 The Python oslo.policy module should be added to Userland
22299469 The Python psutil module should be added to Userland
22337793 The Python sqlparse module should be added to Userland
22338325 The Python fixtures module should be added to Userland
22535728 The Python testtools module should be added to Userland
22535739 The Python extras module should be added to Userland
22535748 The Python linecache2 module should be added to Userland
22535753 The Python traceback2 module should be added to Userland
22535760 The Python python-mimeparse module should be added to Userland
18961001 Image filtering does not function as expected
21678935 NFS for Cinder in Solaris OpenStack
22548630 derived manifest should not enforce presence of global when installing from UAR
22629795 problem in SERVICE/KEYSTONE
#!/usr/bin/bash
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
#
. /lib/svc/share/smf_include.sh
RABBIT_SERVER=/usr/bin/rabbitmq-server
RABBIT_CTL=/usr/bin/rabbitmqctl
if [[ -z "$SMF_FMRI" ]]; then
echo "This script can only be invoked by smf(5)"
exit $SMF_EXIT_ERR_NOSMF
fi
# rabbitmq-env handles pulling in configuration from a number of sources. Out
# of that, the server builds more configuration variables if they haven't
# already been set. getenv() gives us the variable as the server would see it.
# It's up to the caller to massage it as the server would.
getenv() {
# Has the RABBITMQ_ version been set? If so, that takes precedence.
r=$(eval print \$RABBITMQ_${1})
if [[ -n $r ]]; then
print $r
else
print $(
SCRIPT_DIR=/usr/lib/rabbitmq/bin;
. /usr/lib/rabbitmq/bin/rabbitmq-env;
eval print \${$1}
)
fi
}
# If RABBITMQ_NODENAME isn't set in the environment, then use the FMRI instance
# name, unless the instance name is "default", in which case we use the default
# from the configuration files. If the instance name doesn't have an @ in it,
# then append the hostname.
if [[ -z $RABBITMQ_NODENAME ]]; then
INSTANCE=${SMF_FMRI##*:}
if [[ $INSTANCE == default ]]; then
INSTANCE=$(getenv NODENAME)
fi
if [[ $INSTANCE != *@* ]]; then
INSTANCE=$INSTANCE@$(hostname)
fi
export RABBITMQ_NODENAME=$INSTANCE
fi
# XXX Why isn't HOME set for us?
export HOME=/var/lib/rabbitmq
case "$1" in
"start")
$RABBIT_SERVER -detached
# make sure the service is actually up before returning
while true; do
/usr/bin/rabbitmqctl list_users > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
sleep 1
else
break
fi
done
;;
"stop")
$RABBIT_CTL -n $RABBITMQ_NODENAME stop
# XXX epmd should be in a separate SMF service (16749936); for now,
# though, be sure to kill it here.
epmd_pid=$(pgrep -c $(svcs -H -o ctid $SMF_FMRI) epmd)
if [[ -n $epmd_pid ]]; then
sleep 2
epmd -kill
fi
;;
*)
echo "Usage: $0 { start | stop }"
exit $SMF_EXIT_ERR_CONFIG
;;
esac
exit $SMF_EXIT_OK