Skip to content

Instantly share code, notes, and snippets.

@nicopaez
Created May 21, 2018 10:14
Show Gist options
  • Save nicopaez/ad59dba0edfb4be60f50ab88802738cb to your computer and use it in GitHub Desktop.
Save nicopaez/ad59dba0edfb4be60f50ab88802738cb to your computer and use it in GitHub Desktop.
# /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