Bug#448470: pidofproc falls back to pidof

2008-11-26 Thread maximilian . gass
On Wed, Nov 26, 2008 at 08:05:00AM +0100, Yves-Alexis Perez wrote: > btw, in init-function, below pidofproc there's a comment: > # start-stop-daemon uses the same algorithm as "pidofproc" above. I think that's the proper way to go. Quoting the pidof manpage: "If the system has a start-stop- daemon

Bug#448470: pidofproc falls back to pidof

2008-11-26 Thread Arthur de Jong
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've tested the above patch and it seems to solve the problem. It took me a couple of times reading though /lib/lsb/init-functions to understand why though (use of $specified is confusing). Also this problem doesn't seem to show in all circumstan

Bug#448470: pidofproc falls back to pidof

2008-11-25 Thread Yves-Alexis Perez
On mar, 2008-11-25 at 18:07 +0100, Petter Reinholdtsen wrote: > > [Philipp Kern] > > *argh* pidofproc returns the pid of the init script -> portmap does > > not start at all -> rpc.statd and other NFS daemons do not start. > > This affects lenny and severely breaks on-boot mounting of NFS > > shar

Bug#448470: pidofproc falls back to pidof

2008-11-25 Thread Philipp Kern
On Tue, Nov 25, 2008 at 07:06:04PM +0100, Yves-Alexis Perez wrote: > Hmhm yes that looks spurious. It's weird nobody noticed this before, > because it should break in many situations… It's possible that it does break here due to subshell usage. Maybe adding `-o $$' to pidof calls would help to ca

Bug#448470: pidofproc falls back to pidof

2008-11-25 Thread Yves-Alexis Perez
On Tue, Nov 25, 2008 at 06:07:40PM +0100, Petter Reinholdtsen wrote: > [Philipp Kern] > > *argh* pidofproc returns the pid of the init script -> portmap does > > not start at all -> rpc.statd and other NFS daemons do not start. > > This affects lenny and severely breaks on-boot mounting of NFS > >

Bug#448470: pidofproc falls back to pidof

2008-11-25 Thread Petter Reinholdtsen
[Philipp Kern] > *argh* pidofproc returns the pid of the init script -> portmap does > not start at all -> rpc.statd and other NFS daemons do not start. > This affects lenny and severely breaks on-boot mounting of NFS > shares. Hm, is this the /lib/lsb/init-functions implementation of pidofproc? I

Processed: Re: Bug#448470: pidofproc falls back to pidof

2008-11-25 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: > reopen 448470 Bug#448470: Portmap does not start if a random user has a process named portmap 'reopen' may be inappropriate when a bug has been closed with a version; you may need to use 'found' to remove fixed versions. Bug reopened, originator not cha

Bug#448470: pidofproc falls back to pidof

2008-11-25 Thread Philipp Kern
reopen 448470 found 448470 6.0-8 thanks On Tue, Nov 25, 2008 at 09:15:16AM +1100, Aníbal Monsalve Salazar wrote: > On Mon, Nov 24, 2008 at 03:57:35PM +0100, [EMAIL PROTECTED] wrote: > >I suspect this is still not fixed. On a freshly installed Lenny system > >of mine, > Maybe that's how I could rep

Bug#448470: pidofproc falls back to pidof

2008-11-24 Thread Aníbal Monsalve Salazar
On Mon, Nov 24, 2008 at 03:57:35PM +0100, [EMAIL PROTECTED] wrote: >I suspect this is still not fixed. On a freshly installed Lenny system >of mine, Maybe that's how I could reproduce this bug. I'll do a fresh lenny install this coming weekend. >portmap refuses to start stating "Already running"

Bug#448470: pidofproc falls back to pidof

2008-11-24 Thread maximilian . gass
I suspect this is still not fixed. On a freshly installed Lenny system of mine, portmap refuses to start stating "Already running". Adding debug output to the init script shows that $(pidofproc portmap) returns the PID of the shell running the init script ($$). pidofproc falls back to pidof when t