System Administration & Network Administration
debian java process
Updated Wed, 15 Jun 2022 21:24:38 GMT

Java and process name

I'm working on a daemon written in Java. I want to figure out a way I can still run /usr/bin/java but when using top/ps it shows a different name. I've tried creating a hardlink and a symbolic link to java and calling the link instead of java itself but no such luck.

I wouldn't be surprised if it's not possible to do this but I figured I'd see if any gurus on here knew. The distribution is Debian 5. The reason I want to do this is so it's easier to figure out which process is related to the daemon without checking the pid file.

Thanks in advance


bash % exec -a "myprogram" java myprogram

Comments (1)

  • +0 – I forgot to mention that I'm using start-stop-daemon. I'm accepting your answer since I wasn't specific. — Dec 16, 2009 at 20:16