Roundup Tracker - Issues

Message7606

Author rouilj
Recipients rouilj
Date 2022-07-11.21:53:59
Message-id <1657576439.47.0.723637741312.issue2551217@roundup.psfhosted.org>
In-reply-to
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.
History
Date User Action Args
2022-07-11 21:53:59rouiljsetrecipients: + rouilj
2022-07-11 21:53:59rouiljsetmessageid: <1657576439.47.0.723637741312.issue2551217@roundup.psfhosted.org>
2022-07-11 21:53:59rouiljlinkissue2551217 messages
2022-07-11 21:53:59rouiljcreate