mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 15:02:07 -03:30
22 lines
496 B
Bash
Executable File
22 lines
496 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -f /etc/sysconfig/automation-controller ]; then
|
|
source /etc/sysconfig/automation-controller
|
|
fi
|
|
|
|
case "$1" in
|
|
start|stop|restart)
|
|
exec systemctl $1 automation-controller.service
|
|
;;
|
|
status)
|
|
exec systemctl status automation-controller.service $CONTROLLER_SERVICES
|
|
;;
|
|
enable|disable)
|
|
exec systemctl $1 automation-controller.service $CONTROLLER_SERVICES
|
|
;;
|
|
*)
|
|
echo "Usage: automation-controller-service start|stop|restart|status|enable|disable"
|
|
exit 1
|
|
;;
|
|
esac
|