New port startup script fails

Brooks Davis brooks at one-eyed-alien.net
Thu Jul 21 23:01:30 GMT 2005


On Thu, Jul 21, 2005 at 05:50:12PM -0500, Paul Schmehl wrote:
> I'm working on a new port, and I decided to use the new rc.subr type 
> startup script.  After I wrote the script, I started testing it.  The 
> program started fine, but neither stop nor status worked.  I read man (8) 
> rc.subr and studied the script (/etc/rc.subr).
> 
> The program was creating a pid file with the correct name in /var/run, but 
> for some reason, the stop and status commands apparently couldn't find? 
> read? the file.  Is there a way to troubleshoot this problem to pin down 
> exactly were the problem is?

Far too many things could be wrong for us to do more than speculate.
Please send the script in question.

A couple of ideas.  First, are you setting the pidfile variable?  If
not, you may need to.  Second, does the program in question change it's
name?  If so, you may have to implement stop and status by hand.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20050721/e69b8775/attachment.bin


More information about the freebsd-rc mailing list