forked from ISTI-ansible-roles/ansible-roles
18 lines
286 B
Plaintext
18 lines
286 B
Plaintext
|
# {{ 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
|
||
|
|