Change the ruby process name in top

后端 未结 7 838
渐次进展
渐次进展 2021-02-18 14:19

I would like to change the name of the ruby process that gets displayed in the linux/unix top command. I have tried the

$0=\'miname\'

approach

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-18 14:55

    The $0 = 'Foo' method works -- but many versions of top will require you to toggle command-line mode on with 'c'. We this very method here with rails and CentOS. Works a treat

提交回复
热议问题