0

I am trying to change a java process name using the start-stop-daemon. When running the process without the daemon I simply add to the script: "exec -a kuku" And the java process name in the proc file is changed to kuku. I read about the start-stop-daemon and didn't find a way to change the name, can someone help me?

vivi
  • 1
  • 1
  • 2

1 Answers1

0

start-stop-daemon has no functionality to do this. You will need to somehow call the libc function prctl(PR_SET_NAME, "name_here", 0, 0, 0) from your java code to achieve this.

Dennis Kaarsemaker
  • 18,793
  • 2
  • 43
  • 69