Roundup Tracker - Issues

Issue 2551217

Allow roundup to use setproctitle if setproctitle package installed.
Type: behavior Severity: minor
Components: Web interface Versions:
Status: new
: : rouilj
Priority: low : Effort-Low, StarterTicket

Created on 2022-07-11 21:53 by rouilj, last changed 2022-07-11 21:53 by rouilj.

msg7606 Author: [hidden] (rouilj) Date: 2022-07-11 21:53
Allow a user to set a title for the process in the process tree.

Useful for finding a specific roundup-server process rather than looking through all
the python processes for the one that needs killing.

1) add -P <processname> to roundup-server
2) if setproctitle not installed exit with error
3) if installed call it after uid switched to normal user so setproctitle not called as root.

for roundup.cgi:

1) if env variable ROUNDUP_PROCESS_NAME is set, and secproctitle installed,
   call setproctitle with that name
2) if setproctitle not installed, just continue.

I think these are the only two frontends that can benefit from this. wsgi and zope
IIUC are both run by a parent process in an embedded interpreter. For wsi gunicorn the
--name option lets you name the process.
Date User Action Args
2022-07-11 21:53:59rouiljcreate