[ofa-general] [PATCH] opensm.init: startup script fixes

Sasha Khapyorsky sashak at voltaire.com
Mon Nov 12 17:49:09 PST 2007


Don't use redhat specific "daemon" function
Fix opensm path to /usr/sbin

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/scripts/opensm.init |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/scripts/opensm.init b/opensm/scripts/opensm.init
index 46b3a89..d717279 100644
--- a/opensm/scripts/opensm.init
+++ b/opensm/scripts/opensm.init
@@ -55,7 +55,7 @@ fi
 
 start () {
     echo -n "Starting opensm: "
-    daemon /usr/bin/opensm -B $OPTIONS
+    /usr/sbin/opensm -B $OPTIONS > /dev/null
     if [[ $RETVAL -eq 0 ]]; then
         touch /var/lock/subsys/opensm
         success
-- 
1.5.3.4.206.g58ba4




More information about the general mailing list