2017-01-03 12:41:19 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# alias for compatibility
|
|
|
|
|
|
|
|
sudo -iu {{ tomcat_instance_name }} systemctl --user stop tomcat
|
2017-02-24 14:35:56 +01:00
|
|
|
{% if tomcat_instance_mail is defined %}
|
2017-02-24 15:23:33 +01:00
|
|
|
/bin/sh -c date | /usr/bin/mail -s "{{ inventory_hostname }}/{{ tomcat_instance_name }} : Shutdown instance" {{ tomcat_instance_mail }}
|
2017-02-24 14:35:56 +01:00
|
|
|
{% endif %}
|