Need help with rc.d script
rwmaillists at googlemail.com
Fri Nov 10 16:47:27 UTC 2017
On Fri, 10 Nov 2017 10:50:00 -0500
Ernie Luzar wrote:
> I believe we should continual working on getting method 2 working so
> we all learn how rc.d really works and if need be submit a update to
> the handbook rc.d documentation to give the reader a clearer picture
> of what needs to be done to use the rc.d framework for a sh script.
> This talks about setting the command_interpreter variable for
> executable scripts. I tested using the testloop rc.d script posted
> previously with command_interpreter="/bin/sh" and a second time with
> command_interpreter="sh" and in both cases no pid file was created.
The daemon is responsible for creating the pidfile.
I don't recall the full details, but rcng needs to know the pid of a
daemon to shut it down, but it's possible that the daemon has died and
that pid has been reassigned to something else. So before it shuts the
daemon down it checks the command field in the ps output.
command_interpreter is a part of reconstructing that command field.
I'm not sure, but I don't think it plays a part in starting the
More information about the freebsd-questions