Bug#668958: lsb-base: pidofproc doesn't return correct status for daemons without pidfile
Adrian Fita <[email protected]>
| Newsgroups | gmane.linux.debian.devel.lsb |
|---|---|
| Message-ID | <4F8BE162.7040102__35798.2371155687$1334567367$gmane$org@gmail.com> |
On 16/04/12 11:23, Didier 'OdyX' Raboud wrote: [...] > This patch (besides being reversed) makes all "pidofproc with > unspecified pidfile name" calls call /bin/pidof, which is undesired IMHO. > > I propose the attached patch, that only resorts to calling /bin/pidof > when the pidfile is provably inexistant and when it wasn't specified at > first. > > Can you please test it and report back? You're rigth. Your patch is better. I tested it and works fine. > Cheers, OdyX Thanks. -- Fita Adrian