Skip to content

change process name function breaks existing process controll logic #1979

Description

@curu

In 2.8 changelog:

  • [NEW] Set process names so that you can recognize, in the "ps" command output,
    the listening port of an instance, or if it is a saving child.

This is, somewhat convenient.
However, the implementation of setproctitle() on linux may break some process control utility like killall.
say, if I rename redis-server to "web_access_log_redis', and start redis server with command like:
./web_access_log_redis ../conf/web_access_log_redis.conf
then, in 2.8 version, I will be not able to kill it with "killall web_access_log_redis" anymore...

and, we have a script which check if process is running by EXACT command line match, this change also break the existing logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions