pidof: invalid options on command line!

General support questions including new installations
Post Reply
dima2207
Posts: 26
Joined: 2009/08/19 16:11:27
Location: Ukraine, Kiev.

pidof: invalid options on command line!

Post by dima2207 » 2009/08/19 16:17:30

hi all!
when i show status ricci on centos5.3x86_64

#service ricci status
pidof: invalid options on command line!

pidof: invalid options on command line!

-p is stopped

how can i fix that bug ?

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

pidof: invalid options on command line!

Post by michaelnel » 2009/08/19 17:46:53

What I would do is look at /etc/init.d/ricci and see what is being passed to pidof in that script, and troubleshoot it from there. Or report the error to the ricci developers.

dima2207
Posts: 26
Joined: 2009/08/19 16:11:27
Location: Ukraine, Kiev.

Re: pidof: invalid options on command line!

Post by dima2207 » 2009/08/19 18:22:36

[quote]
michaelnel wrote:
What I would do is look at /etc/init.d/ricci and see what is being passed to pidof in that script, and troubleshoot it from there. Or report the error to the ricci developers.[/quote]
i was copy that script from working comp , and nothing was changed .
that is my definition of pid :

ID="ricci"
RICCID="ricci"
PIDFILE="/var/run/ricci.pid"
LOCKFILE="/var/lock/subsys/ricci"
RUNASUSER="ricci"

dima2207
Posts: 26
Joined: 2009/08/19 16:11:27
Location: Ukraine, Kiev.

Re: pidof: invalid options on command line!

Post by dima2207 » 2009/08/19 19:08:14

i finde , that was trouble in my function file

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: pidof: invalid options on command line!

Post by michaelnel » 2009/08/19 20:07:50

Glad you found it, that was good detective work.

Post Reply