rc script problem - pidfile not being recognised

Kevin Golding kpg at caomhin.org
Fri Sep 11 15:56:02 UTC 2015


----- Original Message -----
> From: "RW via freebsd-ports" <freebsd-ports at freebsd.org>
> Sent: Friday, 11 September, 2015 4:18:50 PM
> 
> On Fri, 11 Sep 2015 15:42:18 +0100 (BST)
> 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"
> > 
> ..
> > # 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
> 
> did you set the command_interpreter variable, probably you need
> 
> command_interpreter=/usr/local/bin/python2.7

And that seems to have fixed it - thank you.

I still think there's an error in reading the pidfile since I think this means I'm using the process name rather than the pid but it does the job so I won't worry too much for today. Maybe I'll venture over to freebsd-hackers@ to solve that one when I feel I know my script a little better.


More information about the freebsd-ports mailing list