diff options
Diffstat (limited to 'sys-cluster/mosix-user/files')
-rw-r--r-- | sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 | 1 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 | 1 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/mosix | 33 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/mosix.init | 33 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/mosix.map | 12 |
5 files changed, 80 insertions, 0 deletions
diff --git a/sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 b/sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 new file mode 100644 index 000000000000..e62668b7a60e --- /dev/null +++ b/sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 @@ -0,0 +1 @@ +MD5 0609e667fa713f0f14b2f21d96e01c15 MOSIX-1.5.7.tar.gz 394854 diff --git a/sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 b/sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 new file mode 100644 index 000000000000..3120e5ab65d8 --- /dev/null +++ b/sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 @@ -0,0 +1 @@ +MD5 9e8b8ce3c6ca6a5e759ada15b0086f78 MOSIX-1.8.0.tgz 104365 diff --git a/sys-cluster/mosix-user/files/mosix b/sys-cluster/mosix-user/files/mosix new file mode 100644 index 000000000000..b4bb7381999d --- /dev/null +++ b/sys-cluster/mosix-user/files/mosix @@ -0,0 +1,33 @@ +#!/sbin/runscript + +depend() { + need net +} + +stop() { + ebegin "Stopping MOSIX" + echo 0 > /proc/mosix/admin/mospe + rm -f /var/lock/subsys/mosix + eend +} + +start() { + ebegin "Starting MOSIX" + #do some first-time setup if MOSIX isn't configured + + if [ -s /etc/overheads -a -f /proc/mosix/admin/overheads ] + then + /bin/grep -v '^#' /etc/overheads > /proc/mosix/admin/overheads + fi + if [ -s /etc/mfscosts -a -f /proc/mosix/admin/mfscosts ] + then + /bin/grep -v '^#' /etc/mfscosts > /proc/mosix/admin/mfscosts + fi + a1= + [ -s /etc/mospe ] && a1="-p `cat /etc/mospe`" + a2= + [ -s /etc/mosgates ] && a2="-g `cat /etc/mosgates`" + /sbin/setpe -W $a1 $a2 -f /etc/mosix.map + touch /var/lock/subsys/mosix + eend +} diff --git a/sys-cluster/mosix-user/files/mosix.init b/sys-cluster/mosix-user/files/mosix.init new file mode 100644 index 000000000000..97aadd2c118d --- /dev/null +++ b/sys-cluster/mosix-user/files/mosix.init @@ -0,0 +1,33 @@ +#!/sbin/runscript + +depend() { + need net +} + +stop() { + ebegin "Stopping MOSIX" + echo 0 > /proc/mosix/admin/mospe + rm -f /var/lock/subsys/mosix + eend +} + +start() { + ebegin "Starting MOSIX" + if [ -s /etc/overheads -a -f /proc/mosix/admin/overheads ] + then + grep -v '^#' /etc/overheads > /proc/mosix/admin/overheads + fi + if [ -s /etc/mfscosts -a -f /proc/mosix/admin/mfscosts ] + then + grep -v '^#' /etc/mfscosts > /proc/mosix/admin/mfscosts + fi + local a1 + local a2 + a1= + [ -s /etc/mospe ] && a1="-p `cat /etc/mospe`" + a2= + [ -s /etc/mosgates ] && a2="-g `cat /etc/mosgates`" + /sbin/setpe -W $a1 $a2 -f /etc/mosix.map + touch /var/lock/subsys/mosix + eend +} diff --git a/sys-cluster/mosix-user/files/mosix.map b/sys-cluster/mosix-user/files/mosix.map new file mode 100644 index 000000000000..dcb5d0f31bbd --- /dev/null +++ b/sys-cluster/mosix-user/files/mosix.map @@ -0,0 +1,12 @@ +# YOU WILL HAVE TO DELETE ALL LINES CONTAINING COMMENTS FROM THIS FILE! +# +# col 1: node number +# col 2: ip address of node +# col 3: span (if you are specifying individual nodes on each line, should be 1) +# All nodes in your cluster should have identical data in this file. +# +# YOU WILL HAVE TO DELETE ALL LINES CONTAINING COMMENTS FROM THIS FILE! + + +1 192.168.1.1 1 +2 192.168.1.2 1 |