-
-
Save cemo/5884472 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "service" | |
start on filesystem | |
stop on runlevel S | |
respawn | |
respawn limit 10 5 | |
oom never | |
kill timeout 86400 #If it's given a stop order, this is how long it will take to stop. | |
limit nofile 1048576 1048576 | |
setgid <%= owner %> | |
setuid <%= owner %> | |
script | |
exec /usr/bin/java \ | |
$(sed -e '/^[ ]*\/\//d' -e 's|[ ]*//.*| |' -e 's|^| |' /etc/service.jvm.conf | tr -d "\n") \ | |
-jar /opt/service/service.jar \ | |
server /etc/service.yml \ | |
>> /var/log/service/sysout.log 2>&1 | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment