Getting "pidof: invalid options on command line!" while checking 'service nfs status'

Solution Verified - Updated -

Issue

The following error is occurring when checking of NFS status. Same errors can be found in the message log too.

[root@server ~]# service nfs status
pidof: invalid options on command line!
pidof: invalid options on command line!
rpc.svcgssd is stopped
pidof: invalid options on command line!
pidof: invalid options on command line!
rpc.mountd is stopped
pidof: invalid options on command line!
pidof: invalid options on command line!
nfsd is stopped
pidof: invalid options on command line!
pidof: invalid options on command line!
rpc.rquotad is stopped

Environment

RHEL 6.7

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