mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -03:30
Return more status information from ansible-tower-service status and error check commands better
This commit is contained in:
@@ -1,4 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Redirect to systemctl
|
SERVICES="ansible-tower.service supervisord.service"
|
||||||
exec systemctl $@ ansible-tower.service
|
|
||||||
|
case "$1" in
|
||||||
|
start|stop|restart)
|
||||||
|
systemctl $1 ansible-tower.service
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
systemctl status $SERVICES
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: ansible-tower-service start|stop|restart|status"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user