2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-20 18:52:44 +08:00

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

View file

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