Plans for LFS-6.3

Bruce Dubbs bruce.dubbs at gmail.com
Tue Jul 17 19:41:21 PDT 2007


Dan Nicholson wrote:

> Fixing pidofproc to actually do the right thing w.r.t pid files.
> Dennis Perkins actually put that part together. The other change he
> does there is make the pid list local and echo it back. This is
> slightly different and possibly not backwards compatible since the
> current behavior has the other *proc() functions just using the global
> pidlist variable created in pidofproc.
> 
> I prefer Dennis' way and can fix the functions to catch the result in
> it's own variable, but it could break existing scripts which call
> pidofproc directly. In most cases, though, pidofproc is being called
> indirectly through loadproc or statusproc. 

I did a grep of the bootscripts in both BLFS and LFS and the only files
that mention pidofproc are:

[bdubbs@~/LFS/trunk/bootscripts]$ grep -rl pidofproc *|grep -v svn
ChangeLog
contrib/lsb/lib/init-functions
contrib/lsb-v3/lsb/init-functions
contrib/lsb-v3/init.d/lfs-functions
contrib/lsb-v3/init.d/template
lfs/init.d/functions

[bdubbs@~/BLFS/trunk/bootscripts]$ grep -r pidofproc *|grep -v svn
[bdubbs@~/BLFS/trunk/bootscripts]$

So if these files are all made consistent, there shouldn't be any problem.

As far as user's custom scripts go, I'd think a prudent user would check
them all when upgrading to a new version of LFS.

  -- Bruce



More information about the lfs-dev mailing list