]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
refresh (create temporary patch)
authorSean Hefty <sean.hefty@intel.com>
Thu, 22 Mar 2012 17:27:18 +0000 (10:27 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 22 Mar 2012 17:27:18 +0000 (10:27 -0700)
meta
patches/refresh-temp [new file with mode: 0644]

diff --git a/meta b/meta
index 906b9282b524f6adb7355ef8e1e6dd9cecfd97fb..1159a77529407e877485acf3c7b52457209ae045 100644 (file)
--- a/meta
+++ b/meta
@@ -1,10 +1,11 @@
 Version: 1
-Previous: 2aae2d6a01238f59dd57f057bdb4204f16cdf88e
-Head: 0ab09fc72f9eb8a4b432591f17991e17e8b8dab2
+Previous: bb92d81b76207f75b22510aae32ba928ecdb22a3
+Head: d2da14d5a30c34f2b4c25fd6541786236618b11a
 Applied:
   af_ib: fb683ba55480ada43c09aa48b3cb18bde139f72c
   rename-ibacm: 62fc4bdee12905d85332875439240523fad7bee0
   init-script: 0ab09fc72f9eb8a4b432591f17991e17e8b8dab2
+  refresh-temp: d2da14d5a30c34f2b4c25fd6541786236618b11a
 Unapplied:
   fixup-man: 3b3d0caee4b583c2853c12c6728dbfac03d544f9
   dev-name2ip: 8e00708e882239292492e13aa51c82042255933c
diff --git a/patches/refresh-temp b/patches/refresh-temp
new file mode 100644 (file)
index 0000000..94e44d4
--- /dev/null
@@ -0,0 +1,128 @@
+Bottom: b7ef43780109283b77986862aa8504222eb78bce
+Top:    a3cb4424d2de12c0dffe8f97350084a997801ace
+Author: Sean Hefty <sean.hefty@intel.com>
+Date:   2012-03-22 10:27:18 -0700
+
+Refresh of init-script
+
+---
+
+diff --git a/ibacm.init b/ibacm.init
+new file mode 100644
+index 0000000..14588a1
+--- /dev/null
++++ b/ibacm.init
+@@ -0,0 +1,100 @@
++#!/bin/bash
++#
++# Bring up/down the ibacm daemon
++#
++# chkconfig: 2345 25 75
++# description: Starts/Stops InfiniBand ACM service
++#
++### BEGIN INIT INFO
++# Provides:       ibacm
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
++# Required-Start: rdma $network
++# Required-Stop: rdma $network
++# Should-Start: opensm
++# Should-Stop: opensm
++# Short-Description: Starts and stops the InfiniBand ACM service
++# Description: The InfiniBand ACM service provides a user space implementation
++#     of someting resembling an ARP cache for InfiniBand SA queries and
++#     host route lookups.
++### END INIT INFO
++
++pidfile=/var/run/ibacm.pid
++subsys=/var/lock/subsys/ibacm
++prog=/usr/sbin/ibacm
++
++. /etc/rc.d/init.d/functions
++
++start()
++{
++    echo -n "Starting ibacm daemon:"
++
++    daemon $prog
++    RC=$?
++    [ $RC -eq 0 ] && touch $subsys
++    echo
++    return $RC
++}
++
++stop()
++{
++    echo -n "Stopping ibacm daemon:"
++
++    killproc -p $pidfile $prog
++    RC=$?
++    rm -f $subsys
++    echo
++    return $RC
++}
++
++status()
++{
++    if [ ! -f $subsys -a ! -f $pidfile ]; then
++      return 3
++    fi
++    if [ -f $pidfile ]; then
++      checkpid `cat $pidfile`
++      return $?
++    fi
++    if [ -f $subsys ]; then
++      return 2
++    fi
++}
++
++restart ()
++{
++    stop
++    start
++}
++
++condrestart ()
++{
++    [ -e $subsys ] && restart || return 0
++}
++
++usage ()
++{
++    echo
++    echo "Usage: `basename $0` {start|stop|restart|condrestart|try-restart|force-reload|status}"
++    echo
++    return 2
++}
++
++case $1 in
++    start|stop|restart|condrestart|try-restart|force-reload)
++      [ `id -u` != "0" ] && exit 4 ;;
++esac
++
++case $1 in
++    start) start; RC=$? ;;
++    stop) stop; RC=$? ;;
++    restart) restart; RC=$? ;;
++    reload) RC=3 ;;
++    condrestart) condrestart; RC=$? ;;
++    try-restart) condrestart; RC=$? ;;
++    force-reload) condrestart; RC=$? ;;
++    status) status; RC=$? ;;
++    *) usage; RC=$? ;;
++esac
++
++exit $RC
+diff --git a/ibacm.spec.in b/ibacm.spec.in
+index ac7f06f..b9d73d2 100644
+--- a/ibacm.spec.in
++++ b/ibacm.spec.in
+@@ -13,7 +13,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+ BuildRequires: libibverbs-devel >= 1.1-1, autoconf, libtool, libibumad-devel
+ Requires(post): chkconfig
+-Requiers(preun): chkconfig
++Requires(preun): chkconfig
+ ExcludeArch: s390, s390x
+ %description