Getting "pidof[29146]: invalid options on command line!" error while checking nfs service status

Solution Unverified - Updated -

Issue

  • Getting "pidof[29146]: invalid options on command line!" error while checking nfs service status
[root@localhost ~]# service nfs status
rpc.mountd (pid 3864) is running...
pidof: invalid options on command line!

pidof: invalid options on command line!

-l is stopped
  • The expected output is:
[root@localhost ~]# service nfs status
rpc.mountd (pid 22049) is running...
nfsd (pid 22046 22045 22044 22043 22042 22041 22040 22039) is running...
rpc.rquotad (pid 22020) is running...

Environment

  • Red Hat Enterprise Linux 5
  • nfs-utils-1.0.9-71.el5
  • initscripts-8.45.45-1.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content