lazyrunner50
Programmer
I'm having a very strange problem with a package I just released. If I release the package under one directory, it shows [java] when I do ps, and if I release it in another directory it shows the regular process string (java -Xms512M -Xmx1048M...). At my company, we have our environment set up such that we can release different versions of the package simply by changing some softlinks. Anyway here are the 4 senarios:
1. Package released under /apps/<packagename>/<new version #>
ps -fu <username>
[java]
2. Package released under ~/apps/<packgename>/<new version #>
ps -fu <username>
java -Xms512M -Xmx1048M...
3. Old Package released under /apps/<packagename>/<old version #>
ps -fu <username>
java -Xms512M -Xmx1048M...
4. Old Package released under ~/apps/<packagename>/<old version #>
ps -fu <username>
java -Xms512M -Xmx1048M...
I don't think there is anything wrong with the package because when I deployed it from /apps/... to ~/apps/... , I did cp -r (so all the permissions stayed the same). Additionally, I don't think there's anything wrong with the /apps directory because a previous version of the package works just fine in the same directory. The process itself seems to run just fine, however, we require the full process string because the shutdown script greps on the ps to shut it down properly.
I looked into the /proc/<PID> directory for some help, unfortunately I couldn't find anything useful. The cmdline and environ files are exactly the same between the version released under local (~/apps), and under root (/apps)
Before someone suggests to leave the package local since that works, it is against company policy to have packages in local (the only reason we do it is for testing purposes).
1. Package released under /apps/<packagename>/<new version #>
ps -fu <username>
[java]
2. Package released under ~/apps/<packgename>/<new version #>
ps -fu <username>
java -Xms512M -Xmx1048M...
3. Old Package released under /apps/<packagename>/<old version #>
ps -fu <username>
java -Xms512M -Xmx1048M...
4. Old Package released under ~/apps/<packagename>/<old version #>
ps -fu <username>
java -Xms512M -Xmx1048M...
I don't think there is anything wrong with the package because when I deployed it from /apps/... to ~/apps/... , I did cp -r (so all the permissions stayed the same). Additionally, I don't think there's anything wrong with the /apps directory because a previous version of the package works just fine in the same directory. The process itself seems to run just fine, however, we require the full process string because the shutdown script greps on the ps to shut it down properly.
I looked into the /proc/<PID> directory for some help, unfortunately I couldn't find anything useful. The cmdline and environ files are exactly the same between the version released under local (~/apps), and under root (/apps)
Before someone suggests to leave the package local since that works, it is against company policy to have packages in local (the only reason we do it is for testing purposes).