Bug#693688: The last patch to fix #691422 breaks other init scripts

"Didier 'OdyX' Raboud" <[email protected]>
Newsgroups gmane.linux.debian.devel.lsb
Organization Debian - The Universal OS
Message-ID <201211191319.29381.odyx__5346.96019390157$1353327687$gmane$org@debian.org>
Control: clone -1 -2
Control: reassign -2 exim4-base
Control: retitle -2 /etc/init.d/exim4 uses pidofproc wrongly
Control: severity -2 important
Control: block -1 by -2

Hi dear exim4 maintainers,

as the 693688 bug and lsb-base 4.1+Debian9 reveal, /etc/init.d/exim4 uses 
pidofproc from /lib/lsb/init-functions wrongly:

Le lundi, 19 novembre 2012 11.50:02, Didier 'OdyX' Raboud a écrit :
> $ grep pidofproc /etc/init.d/exim4
>   if pidofproc -p "$QRPIDFILE" >/dev/null; then
>   if pidofproc -p "$PIDFILE" >/dev/null; then

pidofproc is documented as follows in the lsb-base README.Debian.gz:

> pidofproc [-p pidfile] pathname
>   Find the process ID of pathname.  If the pidfile is specified, we use the
>   first space-delimited word; otherwise, /bin/pidof is used from the
>   sysvinit package, if available.

The pathname argument is mandatory, see also [0].

Cheers,

OdyX

[0] http://refspecs.linuxbase.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-
generic/iniscrptfunc.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.