awx/tools/scripts/ansible-tower-service

17 lines
322 B
Bash
Executable File

#!/bin/bash
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