rc script problem - pidfile not being recognised

Kevin Golding kpg at caomhin.org
Fri Sep 11 14:51:23 UTC 2015

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:



# service fuglu stop
fuglu not running? (check /var/run/fuglu.pid).
# cat /var/run/fuglu.pid

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'm at a loss as to what to try, I feel I'm missing something blindingly obvious but it's a mystery to me so if anyone can wave the big red arrow at my mistake I'd be a happy chappy!

Full fuglu.in below:


# $FreeBSD$
# PROVIDE: fuglu
# KEYWORD: shutdown
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
# fuglu_enable (bool):	Set to NO by default.
#				Set it to YES to enable fuglu.

. /etc/rc.subr


load_rc_config $name
: ${fuglu_enable:=no}


run_rc_command "$1"

More information about the freebsd-ports mailing list