ansible-roles/springboot-config/templates/springboot-upstart.conf.j2

18 lines
286 B
Plaintext
Raw Normal View History

# {{ item.name }}
description "{{ item.name }}"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
setuid {{ item.user }}
setgid {{ item.user }}
script
cd {{ item.install_dir }}
exec java {{ item.java_opts }} -jar ./{{ item.name }}.jar
end script