Skip to content

Pidproxy does not read the command args correctly #1418

@ts-kst

Description

@ts-kst

when a command like below is used, the pidproxy will duplicate it:
command=/usr/local/bin/pidproxy /var/run/iii.pid /opt/sbin/iii -d

Printed from pidproxy.py init()

args = ['/usr/local/bin/pidproxy', '/var/run/iii.pid', '/opt/sbin/iii', '-d']
self.command = /opt/sbin/iii
self.cmdargs = ['/opt/sbin/iii', '-d']
self.pidfile = /var/run/iii.pid

Problem is self.cmdargs = cmdargs where it should be self.cmdargs = cmdargs[1:]

This bug will make pidproxy return instead of staying alive.

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