public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-infiniband/srptools/files: srpd.initd
@ 2012-04-18 16:46 Alexey Shvetsov (alexxy)
  0 siblings, 0 replies; only message in thread
From: Alexey Shvetsov (alexxy) @ 2012-04-18 16:46 UTC (permalink / raw
  To: gentoo-commits

alexxy      12/04/18 16:46:43

  Added:                srpd.initd
  Log:
  [sys-infiniband/srptools] Version bump to OFED 1.5.4.1
  
  (Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-infiniband/srptools/files/srpd.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-infiniband/srptools/files/srpd.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-infiniband/srptools/files/srpd.initd?rev=1.1&content-type=text/plain

Index: srpd.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/srptools/files/srpd.initd,v 1.1 2012/04/18 16:46:42 alexxy Exp $

description="SCSI RDMA Protoaemon daemon"

depend() {
	need net
}

checkconfig() {
	if ! modinfo ib_srp > /dev/null 2>&1 ; then
		eerror "ib_srp module not found!"
		return 1
	fi
}

start() {
	checkconfig
	ebegin "Loading ib_srp module"
	modprobe ib_srp
	eend $?
	ebegin "Starting srp_daemon"
	start-stop-daemon \
		--start \
		--background \
		--make-pidfile \
		--pidfile ${SRP_DAEMON_PID:-/var/run/srpd.pid} \
		--exec /usr/sbin/srp_daemon -- ${SRP_DAEMON_OPTS:- -e -R 60}
	eend $?
	
}

stop() {
	ebegin "Stopping srp_daemon"
	start-stop-daemon --stop --pidfile ${SRP_DAEMON_PID:-/var/run/srpd.pid}
	eend $?
	ebegin "Unloading ib_srp module"
	rmmod ib_srp
	eend $?
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-18 16:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-18 16:46 [gentoo-commits] gentoo-x86 commit in sys-infiniband/srptools/files: srpd.initd Alexey Shvetsov (alexxy)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox