]> git.entuzijast.net Git - imunes.git/commitdiff
Temporary fix to enable multiple inetd and rpcbind processes (in different vimages).
authormiljenko <miljenko>
Tue, 13 Nov 2007 09:34:06 +0000 (09:34 +0000)
committermiljenko <miljenko>
Tue, 13 Nov 2007 09:34:06 +0000 (09:34 +0000)
Sholud be removed if each vimage is running in separate file system.

Bug found by:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

host.tcl

index c438969241df6ca84fb4d806240bc23f177d2e74..6e4ca19a4f0d58ba365162b293fdac3d4a75b71c 100755 (executable)
--- a/host.tcl
+++ b/host.tcl
@@ -1,4 +1,4 @@
-# $Id: host.tcl,v 1.16 2007/09/14 07:46:58 miljenko Exp $ 
+# $Id: host.tcl,v 1.17 2007/11/13 09:34:06 miljenko Exp $ 
 #
 # Copyright 2005 University of Zagreb, Croatia.  All rights reserved.
 #
@@ -107,9 +107,21 @@ proc $MODULE.cfggen { node } {
        lappend cfg "route -q add -inet6 $statrte"
     }
 
+    # Temporary fix to enable multiple inetd and rpcbind processes 
+    # (in different vimages). Sholud be removed if each vimage is running
+    # in separate file system.
+    #
+    # Before startup ...
+    lappend cfg "rm -f /var/run/inetd.pid" 
+    lappend cfg "rm -f /var/run/rpcbind.lock" 
+
     lappend cfg "rpcbind"
     lappend cfg "inetd"
 
+    # ... and after startup.
+    lappend cfg "rm -f /var/run/inetd.pid" 
+    lappend cfg "rm -f /var/run/rpcbind.lock" 
+
     return $cfg
 }