Bug 4896 - [lsb image] pidof: invalid options on command line
Summary: [lsb image] pidof: invalid options on command line
Status: RESOLVED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M4
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-23 05:56 UTC by Yi Zhao
Modified: 2013-07-30 02:12 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...