It seems that my pidof was kinda old and older versions can't get the pid when using full path. I updated it and now it's working like a charm. I hope that someone will find this thread usefull later when facing the same problem.
I've a weird problem with pidof command in my FC3 box.
I have a script in /home/coixi/test/startserver which starts another service in a loop.
The problem is that when i do...
pidof -x /home/coixi/test/startserver
...pidof doesn't output the pid even if it exists.
However, if i go to /home/coixi and do...
pidof -x test/startserver
...pidof returns the pid normally.
I'm 100% sure that all paths are fine. /sbin is exported to $PATH so i can run it just with command pidof.
I've tested this with few debian machines and now this one fedora is causing me a headache.
Distro: Fedora Core release 3 (Heidelberg)
So, what can possibly cause that problem mentioned before? My hands are tied with this.