[OpenAFS] Re: "Starting AFS cache scan..."

Andrew Deason adeason@sinenomine.net
Wed, 9 Jun 2010 17:49:31 -0500

On Wed, 09 Jun 2010 15:28:24 -0700
Russ Allbery <rra@stanford.edu> wrote:

> > If you just run afsd directly instead of backgrounding it, it sounds
> > like it'll do what you want. That is, replace the line in the script
> > that has "start-stop-daemon --start <stuff> /foo/afsd --
> > $AFSD_OPTIONS" with just "/foo/afsd $AFSD_OPTIONS".
> Is there any reason not to do this?  If not, I can just make this
> change in the Debian package.  I don't recall why start-stop-daemon
> was used there in the first place.

Hmm, I can't think of much. Does start-stop-daemon do anything like
clean the environment, etc? Has afsd always exited after mount? Does it
matter if some afsd children only fork() without doing anything like

And actually, come to think of it, you could probably do something like
this with the existing init scripts by using the after-afsd-has-started
hook to wait for the parent afsd process to die... if you can identify
which one is the parent.

Andrew Deason