DEV: setproctitle on demon processes (#11402)

This makes it easier to identify processes in `ps` output
This commit is contained in:
David Taylor 2020-12-04 09:41:17 +00:00 committed by GitHub
parent 1960fc5333
commit 477538bf2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ class Demon::Base
return
end
Process.setproctitle("discourse #{self.class.prefix}")
monitor_parent
establish_app
after_fork