mojohaus / appassembler

https://www.mojohaus.org/appassembler/
MIT License
93 stars 49 forks source link

Option to modify PIDDIR #13

Open SomethingReallyRandom opened 8 years ago

SomethingReallyRandom commented 8 years ago

Hello,

Currently I am attempting to relocation some of the directories that the wrapper is using. I would like an easily option to be accessible via maven build parameters to be able to which where the pid dir and execution directory are set.

Reasons for the pid dir; We would like to be able to move this to a common 'var' folder, such that we can have an existing version of our app running, then install a new version of it. As they have the same app names and the same pid dir this would result in the same file being used for both versions. This would prevent the new version from starting until the old version has been stopped.

Reasons for moving the execution folder; Some vender products are a little messy, and documentation can be hard to find on how to alter default settings. I often see applications wanting to write things to the folder that the application started in. As this in the bin folder, I often see log files and hotspot files written to this folder. I believe it would be nice to have the option to have the java processes from a different folder to avoid this pollution of the bin/scripts folder.

I look forward to your thoughts thanks

marcosdotps commented 8 years ago

The pid dir option would be awesome. Thanks!