You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-infiniband/opensm/files/opensm.init.d

25 lines
632 B

#!/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/opensm/files/opensm.init.d,v 1.2 2012/04/18 16:45:30 alexxy Exp $
depend() {
need openib
after net # ip net seems to be needed to perform management.
}
prog=/usr/sbin/opensm
start() {
ebegin "Starting OpenSM Infiniband Subnet Manager"
start-stop-daemon --start --background --exec $prog -- $OPTIONS
eend $?
}
stop() {
ebegin "Stopping OpenSM Infiniband Subnet Manager"
start-stop-daemon --stop --exec $prog
eend $?
}