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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.