Getting "pidof: invalid options on command line!" while checking 'service nfs status'
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.