You can clone with
The name for the http server should be the service name instead of java.... So we can use normal unix utilities to find and work with various platform processes.
From John Meyers
I have a library for this: https://github.com/electrum/procname
Awesome! It will be some work to make it generic enough to be brought in for all our stuff, but maybe there is a way to make a simple mechanism to bring this in on a per-build basis with the target arch and such as build parameters...
A simpler mechanism would be to have a symlink or hardlink to the java executable.
Fixed by pull request #114
The symlink doesn't affect the process name. The hard link is looking untenable as Java seems to depend on the directory containing the executable in order to find shared libraries.
In Linux 2.6.33, one can do this by writing to /proc/self/comm. Unfortunately, CentOS 6 is based on 2.6.32.
Won't fix. Would like to but can't find a way to do this.