Updates to tower init script

This commit is contained in:
Matthew Jones
2014-07-31 10:05:32 -04:00
parent 1f34fc5101
commit 65aadb862e

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# init script to manage tower and its related services # init script to manage tower and its related services
# Copyright (c) 2014 Ansible, Inc. # Copyright (c) 2014 Ansible, Inc.
@@ -6,7 +6,7 @@
if [ -e /etc/debian_version ] if [ -e /etc/debian_version ]
then then
SERVICES=(postgresql rabbitmq-server apache2 supervisord) SERVICES=(postgresql rabbitmq-server apache2 supervisor)
else else
SERVICES=(postgresql rabbitmq-server httpd supervisord) SERVICES=(postgresql rabbitmq-server httpd supervisord)
fi fi
@@ -28,7 +28,8 @@ case "$1" in
;; ;;
restart) restart)
echo "Restarting Tower" echo "Restarting Tower"
service_action restart service_action stop
service_action start
;; ;;
status) status)
echo "Showing Tower Status" echo "Showing Tower Status"