Rackspace-DOT / nova-agent

Other
4 stars 18 forks source link

pidofproc: /etc/init.d/nova-agent: invalid arguments #69

Open hkmaly opened 5 years ago

hkmaly commented 5 years ago

Following code in etc/nova-agent.init is incorrect

    if pidofproc -p $pid_file ; then
        return 0
    fi

pidofproc expects additional argument, otherwise it complains with error message

/etc/init.d/nova-agent: invalid arguments

. I suppose it should be

    if pidofproc -p $pid_file $PROG ; then
        return 0
    fi