merge 565201 565230
affects 564501 rpcbind
thanks

Hi!

On Sun, 2010-01-10 at 01:49:42 +0200, Oren Held wrote:
> On Saturday 09 January 2010 22:54:08 Petter Reinholdtsen wrote:
> > [Oren Held]
> > 
> > > As far as I understand this cannot be done in /etc/insserv.d/,
> > > because $portmap is already defined in /etc/insserv.conf.

The problem is the missing '+' in the portmap entry, which makes it
non-optional when rpcbind is available but portmap is not.

> > I thought this worked fine.  Did you test it and it failed?  How did
> > it fail?  Note that the directory is /etc/insserv.conf.d/.
> 
> I didn't test it. I just believed that it doesn't make sense to APPEND things 
> to a facility already declared on /etc/insserv.conf.
> 
> But - I was wrong. Just tested and it works better than I've expected.
> So please reject this bug, sorry for opening before checking. I was too 
> convinced.
> 
> I'll open a related bug to rpcbind, to add its own file to insserv.conf.d.

This does not seem to work now, and makes upgrades (and installation) of
portmap depending packages fail, maybe because the checks done by insserv
are more strict now, here's a test session:

yamato:~# cat /etc/insserv.conf.d/rpcbind
$portmap        rpcbind
yamato:~# grep portmap /etc/insserv.conf
# SunRPC portmapper available
$portmap        portmap
yamato:~# update-rc.d nfs-common start 20 2 3 4 5 . stop 20 0 1 6 . start 44 S .
update-rc.d: using dependency based boot sequencing
insserv: Service portmap has to be enabled to start service nfs-common
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
yamato:~# vi /etc/insserv.conf
yamato:~# grep portmap /etc/insserv.conf
# SunRPC portmapper available
$portmap        +portmap
yamato:~# update-rc.d nfs-common start 20 2 3 4 5 . stop 20 0 1 6 . start 44 S .
update-rc.d: using dependency based boot sequencing
yamato:~#


So the solution, is to add a '+' to the portmap entry in insserv.conf
and either make rpcbind provide a /etc/insserv.conf.d/rpcbind file, or
append rpcbind to $portmap in /etc/insserv.conf.

thanks,
guillem



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to