We have some data import tools we've written in-house and I need to set them up on a new Linux box.
These are written in both Java and .NET (running on Mono) and they comprise binaries, config files, resources/assets like images and templates. They also write logs and look to some special folders for the data to import.
I'm new to Linux. At the moment, they're in a folder like
/data/importManager.net/ with these folders containing everything they need to run.
But I see
/data/ is a non-standard folder. So I wanted to know if there's a proper place to set them up, however it seems the on Linux, there's many, many folders each for a specific purpose and for read-only/read-write data.
Its almost as if I need to split my apps over a bunch of folders to do it properly, and some folder names, like
bin sound right but then what do I with non-binary/compiled files?
Aside from the binaries, the config and everything else is often modified by humans.
Something like (just focusing on the Java part for now):
/opt/importer.java/for the binaries, config and resources
/var/importer.java/data-in/for dropping in data to import
/var/importer.java/logsfor the logs written
Or maybe I should use the
/srv/ folder? Or perhaps
/usr/bin/. Maybe logs should be written to the
/home/ folder of the running user?
It's all so complicated. Whenever I read any Linux documentation I regret it. Should I just copy it all over from the other machine as-is and forget I ever tried?