Commit eec3d58d authored by Jan Siersch's avatar Jan Siersch
Browse files

-new: added "list" command to "stack.sh"

parent 22b9d622
#!/bin/bash
usage="usage: $0 [status|start|stop|restart|enable|disable]"
usage="usage: $0 [list|status|start|stop|restart|enable|disable]"
if (( $# != 1 )); then
echo "$usage";
exit 1;
fi
doList=false;
doStop=false;
doStart=false;
doStatus=false;
doEnable=false;
doDisable=false;
if [ "$1" == "status" ]; then
if [ "$1" == "list" ]; then
doList=true;
elif [ "$1" == "status" ]; then
doStatus=true;
elif [ "$1" == "start" ]; then
doStart=true;
......@@ -40,6 +43,12 @@ arr+=(openstack-cinder-volume.service)
arr+=(neutron-openvswitch-agent.service)
arr+=(openstack-nova-compute.service)
if $doList; then
for i in ${arr[*]}; do
echo "$i";
done
fi
if $doStatus; then
for i in ${arr[*]}; do
systemctl status "$i";
......
#!/bin/bash
usage="usage: $0 [status|start|stop|restart|enable|disable]"
usage="usage: $0 [list|status|start|stop|restart|enable|disable]"
if (( $# != 1 )); then
echo "$usage";
exit 1;
fi
doList=false;
doStop=false;
doStart=false;
doStatus=false;
doEnable=false;
doDisable=false;
if [ "$1" == "status" ]; then
if [ "$1" == "list" ]; then
doList=true;
elif [ "$1" == "status" ]; then
doStatus=true;
elif [ "$1" == "start" ]; then
doStart=true;
......@@ -50,6 +53,12 @@ arr+=(openstack-nova-consoleauth.service)
arr+=(openstack-nova-scheduler.service)
arr+=(openstack-nova-novncproxy.service)
if $doList; then
for i in ${arr[*]}; do
echo "$i";
done
fi
if $doStatus; then
for i in ${arr[*]}; do
systemctl status "$i";
......
#!/bin/bash
usage="usage: $0 [status|start|stop|restart|enable|disable]"
usage="usage: $0 [list|status|start|stop|restart|enable|disable]"
if (( $# != 1 )); then
echo "$usage";
exit 1;
fi
doList=false;
doStop=false;
doStart=false;
doStatus=false;
doEnable=false;
doDisable=false;
if [ "$1" == "status" ]; then
if [ "$1" == "list" ]; then
doList=true;
elif [ "$1" == "status" ]; then
doStatus=true;
elif [ "$1" == "start" ]; then
doStart=true;
......@@ -40,6 +43,12 @@ arr+=(neutron-metadata-agent.service)
arr+=(neutron-dhcp-agent.service)
arr+=(neutron-openvswitch-agent.service)
if $doList; then
for i in ${arr[*]}; do
echo "$i";
done
fi
if $doStatus; then
for i in ${arr[*]}; do
systemctl status "$i";
......
#!/bin/bash
usage="usage: $0 [status|start|stop|restart|enable|disable]"
usage="usage: $0 [list|status|start|stop|restart|enable|disable]"
if (( $# != 1 )); then
echo "$usage";
exit 1;
fi
doList=false;
doStop=false;
doStart=false;
doStatus=false;
doEnable=false;
doDisable=false;
if [ "$1" == "status" ]; then
if [ "$1" == "list" ]; then
doList=true;
elif [ "$1" == "status" ]; then
doStatus=true;
elif [ "$1" == "start" ]; then
doStart=true;
......@@ -36,6 +39,12 @@ arr=()
arr+=(target.service)
arr+=(openstack-cinder-volume.service)
if $doList; then
for i in ${arr[*]}; do
echo "$i";
done
fi
if $doStatus; then
for i in ${arr[*]}; do
systemctl status "$i";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment