Change process name

Hi,

How do I rename a JRuby process from all that java … mess into
something
more like “myapp”?

I tried the $0 = “myapp” approach from inside the JRuby process but it
didn’t work.

I also tried doing exec [“jruby”, “myapp”], … from a ruby but it also
didn’t work, at least from what I can see in “ps aux”.

Cheers,

António Alegria

I also tried doing exec [“jruby”, “myapp”], … from a ruby but it also
didn’t work, at least from what I can see in “ps aux”.

rename the jruby executable?
run from within a script?
-r