I made java application that's supposed to be executed as daemon. I am using an Amazon Linux AMI, which uses SysVinit and I already have an init script for my daemon, I am just a bit confused on where to place the files.At first I was going to place my jar file at the /usr/bin folder, since I guess there's where regular programs go, but I my program uses 2 libraries, so as a matter of fact I have 1 jar file and and lib file with 2 libraries inside it.I am concerned about placing the jar file at /usr/bin and then the libraries at /usr/lib since the jar and the lib folder are supposed to be on the same folder, besides, I feel this can make a mess with my system if those libraries are updated by another program in the future, breaking some functionality by mistake, not to mention things starting to get cumbersome with so many different files spread everywhere.But since I like to comply with standards, I don't want to go and just create a random folder for my program and drop all I need inside of it.Is it there a correct way to deploy systems like this on Linux? How`s the best way to deploy a java daemon that needs some libraries too?
How to deploy a Java application
java;libraries;daemon;deployment