cvs commit: BLFS/BOOK/introduction/welcome changelog.xml

Jürg Billeter j at bitron.ch
Sun Jan 4 01:51:51 PST 2004


Am Son, den 04.01.2004 schrieb Alexander E. Patrakov um 05:17:
> So you decided that mysql is a special case and generally killproc is the 
> right thing. Does everyone agree? Or should we edit lfs-bootscripts instead?
> 
> For now, I see the following cases of killing the daemon:
> 
> 1) Get the PID from a .pid file, wait until the process dies as reported by 
> kill -0, with configurable timeout
> 2) Get the PID from a .pid file, wait until the .pid file disappears, with 
> configurable timeout
> 3) Get the list of PIDs from pidof, kill them all, like killproc does
> 4) Use a special utility like apachectl or pg_ctl
> 
> While (4) is certainly a special case, do you think that (1) and (2) are worth 
> having special functions in /etc/rc.d/init.d/functions? Then mysqld will be 
> the case (2), with a timeout of 35 seconds.

Just a remark: According to LSB [1], the normal case is to get the PID
from a file, but a distribution may use other mechanisms, although this
is not recommended.

Jürg

[1]
http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/iniscrptfunc.html





More information about the blfs-book mailing list