mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Return more status information from ansible-tower-service status and error check commands better
This commit is contained in:
parent
e7a9604896
commit
e36ffa5764
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user