Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28239 - /etc/init.d/openmosix only works on main interface
Summary: /etc/init.d/openmosix only works on main interface
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-08 22:39 UTC by Bob Smart
Modified: 2010-09-10 18:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Smart 2003-09-08 22:39:54 UTC
It seems desirable to run opnmosix on internal subnet. It would be
nice if setpe detected that an entry in /etc/openmosix.map was
one of this machines interfaces instead of only checking for
main one. Anyway I've put in a slight change to allow the
node number to be put in /local/etc/om-node-num [you might like
to change that] for use in a -p option to setpe.

--- /tmp/openmosix      2003-09-09 13:35:05.000000000 +1000
+++ /etc/init.d/openmosix       2003-09-09 13:15:48.000000000 +1000
@@ -41,9 +41,15 @@
     AUTODISC=1
 fi
 
+OMnode=""
+if [ -f /local/etc/om-node-num ]
+then
+  OMnode="-p $(< /local/etc/om-node-num)"
+fi
+
 # Check the map-file for sanity
 if [ $AUTODISC -eq 0 ]; then
-    setpe -c -f $OMOSIX_MAP &> /dev/null
+    setpe $OMnode -c -f $OMOSIX_MAP &> /dev/null
     if [ ! $? -eq 0 ]; then
         einfo "openMosix: Invalid configuration in map-file $OMOSIX_MAP, using 
autodiscovery"
         AUTODISC=1
@@ -75,7 +81,7 @@
             SETPE_OPTIONS=""
            [ $MYOMID ] && SETPE_OPTIONS="$SETPE_OPTIONS -p $MYOMID"
            [ $MOSGATES ] && SETPE_OPTIONS="$SETPE_OPTIONS -g $MOSGATES"
-           setpe -W $SETPE_OPTIONS -f $OMOSIX_MAP
+           setpe $OMnode -W $SETPE_OPTIONS -f $OMOSIX_MAP
        else
             # Configurate openMosix with the omdiscd
            OMDISCD_OPTIONS=""
Comment 1 Michael Imhof (RETIRED) gentoo-dev 2003-11-06 08:18:33 UTC
I checked in the changes you suggested to the init-script. I also bumped
the version to -r1 tom make sure everyone get's the new init.

Please have a look at it and tell me if everything is as intended.

Thanks for your help.
Comment 2 Michael Imhof (RETIRED) gentoo-dev 2003-11-10 04:58:40 UTC
As i got no response I'll close this bug now.