rc script problem - pidfile not being recognised

Michelle Sullivan michelle at sorbs.net
Fri Sep 11 15:59:07 UTC 2015


Kevin Golding wrote:
> I've been trying to work on a new port and it's my first that uses an rc script so I've been expecting a few bumps, but there's one thing I can't seem to fix and it's a blocker. I can't stop the daemon!
>
> It dopes create a pidfile so I have the following line in my script:
>
> pidfile="/var/run/${name}.pid"
>
> Alas...
>
> # service fuglu stop
> fuglu not running? (check /var/run/fuglu.pid).
> # cat /var/run/fuglu.pid
> 24013
>
> I don't get it. It is the right process ID:
>
> # ps -waux | grep fuglu
> nobody   24013   0.0  0.5 139532  37372  -  I     3:57PM     0:01.03 /usr/local/bin/python2.7 /usr/local/bin/fuglu --pidfile /var/r
> root     26179   0.0  0.0  18824   1976  0  S+    4:30PM     0:00.00 grep fuglu
>   

I'd take a bet as it's running as a user the process is being called to
shutdown and there is some permissions issue on the PID file (I see the
same thing with bucardo when running bucardo as non root)

Regards,

Michelle

-- 
Michelle Sullivan
http://www.mhix.org/



More information about the freebsd-ports mailing list