Created
May 21, 2018 10:14
-
-
Save nicopaez/ad59dba0edfb4be60f50ab88802738cb 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
# /etc/init/jobvacancy.conf - JobVacancy Service | |
description "JobVacancy Service" | |
start on runlevel [2345] | |
setuid root | |
setgid root | |
respawn | |
respawn limit 3 30 | |
script | |
exec /bin/bash <<'EOT' | |
cd /opt/javawebapp | |
exec java -Djava.security.egd=file:/dev/./urandom -Dserver.port=9000 -jar javawebapp.war --spring.profiles.active=prod | |
EOT | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment