From 477538bf2dde226747cfa9de85006bbab1930f63 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 4 Dec 2020 09:41:17 +0000 Subject: [PATCH] DEV: setproctitle on demon processes (#11402) This makes it easier to identify processes in `ps` output --- lib/demon/base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/demon/base.rb b/lib/demon/base.rb index fc752a44640..008a17d07c7 100644 --- a/lib/demon/base.rb +++ b/lib/demon/base.rb @@ -146,6 +146,7 @@ class Demon::Base return end + Process.setproctitle("discourse #{self.class.prefix}") monitor_parent establish_app after_fork