Skip to content

change process name function breaks existing process controll logic #1979

Closed

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.

Activity

  1. badboy commented on Sep 2, 2014

    @badboy
    Contributor

    First: you shouldn't rely on things like killal for precisely this reason. Names are not a good thing to match against.

    Second: There's a discussion in #694, but I think there must be yet another issue on how to better deal with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions