Return more status information from ansible-tower-service status and error check commands better

This commit is contained in:
Graham Mainwaring 2020-04-24 11:37:16 -04:00
parent e7a9604896
commit e36ffa5764

View File

@ -1,4 +1,16 @@
#!/bin/bash
# Redirect to systemctl
exec systemctl $@ ansible-tower.service
SERVICES="ansible-tower.service supervisord.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