Bug 1262857
Summary: | 'pidof -m' option gives inavlid option error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Soumya <soumya.324> |
Component: | sysvinit | Assignee: | Lukáš Nykrýn <lnykryn> |
Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-daemons |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.7 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-16 11:37:20 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Soumya
2015-09-14 13:38:11 UTC
Hmm I can't reproduce the issue: [lnykryn@notas src(rhel-6.7)]$ sleep 30 & [1] 1428 [lnykryn@notas src(rhel-6.7)]$ sleep 30 & [2] 1437 [lnykryn@notas src(rhel-6.7)]$ sleep 30 & [3] 1448 [lnykryn@notas src(rhel-6.7)]$ sleep 30 & [4] 1461 [lnykryn@notas src(rhel-6.7)]$ sleep 30 & [5] 1471 [lnykryn@notas src(rhel-6.7)]$ sleep 30 & [6] 1481 [lnykryn@notas src(rhel-6.7)]$ sleep 30 & [7] 1490 [lnykryn@notas src(rhel-6.7)]$ ./pidof -c -m -o 1428 -o %PPID -x sleep [lnykryn@notas src(rhel-6.7)]$ and one more test on rhel6 machine: [root@rhel6 init.d]# rpm -q initscripts sysvinit-tools initscripts-9.03.49-1.el6.x86_64 sysvinit-tools-2.87-6.dsf.el6.x86_64 [root@rhel6 init.d]# . /etc/init.d/functions [root@rhel6 init.d]# sleep 600 & [3] 1412 [root@rhel6 init.d]# sleep 600 & [4] 1413 [root@rhel6 init.d]# sleep 600 & [5] 1414 [root@rhel6 init.d]# sleep 600 & [6] 1415 [root@rhel6 init.d]# set -x ++ printf '\033]0;%s@%s:%s\007' root rhel6 /etc/init.d [root@rhel6 init.d]# __pids_pidof sleep + __pids_pidof sleep + pidof -c -m -o 1379 -o 1375 -o %PPID -x sleep 1415 1414 1413 1412 1405 1404 ++ printf '\033]0;%s@%s:%s\007' root rhel6 /etc/init.d Ohh, I think I got the issue.. So I installed virtuozzo on top of centos 6.7.. which changes /sbin/pidof: Earlier: -------------- [root@ ~]# which /sbin/pidof /sbin/pidof [root@ ~]# rpm -qf /sbin/pidof sysvinit-tools-2.87-6.dsf.el6.x86_64 [root@ ~]# ls -al /sbin/pidof lrwxrwxrwx. 1 root root 8 Sep 16 2015 /sbin/pidof -> killall5 [root@ ~]# -------------- Post virtuozzo installation: -------------- [root@ ~]# which /sbin/pidof /sbin/pidof [root@ ~]# rpm -qf /sbin/pidof sysvinit-tools-2.87-6.dsf.el6.x86_64 [root@ ~]# ls -al /sbin/pidof lrwxrwxrwx. 1 root root 8 Sep 16 2015 /sbin/pidof -> /sbin/vzpidof [root@ ~]# rpm -qf /sbin/vzpidof vz-redhat-compat-4.6.0-5.x86_64 -------------- So its an issue with the vz package. Sorry for the trouble, and thanks for your time Lukáš Nykrýn CLOSED Never mind, glad to help. |