[Pkg-ofed-devel] why does opensm have two initscripts?

Guy Coates gmpc at sanger.ac.uk
Tue Nov 20 09:14:38 UTC 2012


On 20/11/12 00:36, Roland Dreier wrote:
> Related to this work of updating packages, can someone explain to me why
> the opensm package contains two initscripts -- /etc/init.d/opensm and
> /etc/init.d/opensm-boot?  They're close to identical and I can't
> understand why we need both of them.  (And they cause problems when
Hi Roland,

As far as I remember, it was done to get srp luns mounted correctly at
boot time on lenny systems. In order to do that opensm needed to be up,
but /var was not necessarily writeable, so the daemons were unable to log.

opensm-boot / srp-boot does a one-shot run on opensm/srp-tools, which is
enough for the mount / lvm init scripts to discover the lun, and then
the "normal" opensm/srp scripts get run later in the boot process and
start the deamons up properly.

There is probably a better way to do this now, but I don't have access
to a sid system with srp luns.

As an aside, I made some fixes a while ago to the srptools init scripts
(it is in the srptools tree in svn/trunk). It would be good to get those
uploaded.

Cheers,

Guy


-- 
Dr. Guy Coates, Informatics Systems Group
The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1HH, UK
Tel: +44 (0)1223 834244 x 6925
Fax: +44 (0)1223 496802


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 



More information about the Pkg-ofed-devel mailing list