1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-28 19:25:40 +03:00
awx/tools/scripts/ansible-tower-service
2020-04-24 14:08:24 -04:00

19 lines
392 B
Bash
Executable File

#!/bin/bash
if [ -f /etc/sysconfig/ansible-tower ]; then
source /etc/sysconfig/ansible-tower
fi
case "$1" in
start|stop|restart)
exec systemctl $1 ansible-tower.service
;;
status)
exec systemctl status ansible-tower.service $TOWER_SERVICES
;;
*)
echo "Usage: ansible-tower-service start|stop|restart|status"
exit 1
;;
esac