Bug 4896

Summary: [lsb image] pidof: invalid options on command line
Product: [Runtime] General Runtime Reporter: Yi Zhao <yi.zhao>
Component: General RuntimeAssignee: Hongxu Jia <hongxu.jia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: ke.zou, liezhi.yang, ning.zhang, Qi.Chen, sgw
Version: 1.5   
Target Milestone: 1.5 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2013-07-23 05:56:13 UTC
Git rev: 31e6eee860b5f9f4ac9ef0889bcff5648de6e3f9

Steps:
1. Download the poky source and build a qemux86-64 lsb image
2. When reboot the system, some kill processes would print the following message:
######################
pidof: invalid options on command line!
######################

In /etc/init.d/functions.lsbinitscripts, the killproc function uses pidof command to get the pid. But pidof from sysvinit package doesn't support -m option.
Comment 1 Hongxu Jia 2013-07-24 08:20:10 UTC
Invoke reboot is not easy to trace the result, invoke status also could
verify this issue.

Test Case:

*On host: build core-image-lsb

*On target:
~# . /etc/init.d/functions
~# status sshd
sshd (pid  670) is running...