From: | "Alexey Shvetsov (alexxy)" <alexxy@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-infiniband/opensm/files: opensm.init.d |
Date: | Thu, 30 Jun 2011 22:05:04 |
Message-Id: | 20110630220454.E944020057@flycatcher.gentoo.org |
1 | alexxy 11/06/30 22:04:54 |
2 | |
3 | Added: opensm.init.d |
4 | Log: |
5 | [sys-infiniband/opensm] Initial import to tree |
6 | |
7 | (Portage version: 2.2.0_alpha41/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-infiniband/opensm/files/opensm.init.d |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-infiniband/opensm/files/opensm.init.d?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-infiniband/opensm/files/opensm.init.d?rev=1.1&content-type=text/plain |
14 | |
15 | Index: opensm.init.d |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2011 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/sys-infiniband/opensm/files/opensm.init.d,v 1.1 2011/06/30 22:04:54 alexxy Exp $ |
21 | |
22 | # Based on opensm script from openfabrics.org, |
23 | # Copyright (c) 2006 Mellanox Technologies. All rights reserved. |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | |
26 | depend() { |
27 | need openib |
28 | after net # ip net seems to be needed to perform management. |
29 | } |
30 | |
31 | prog=/usr/sbin/opensm |
32 | |
33 | start() { |
34 | ebegin "Starting OpenSM Infiniband Subnet Manager" |
35 | start-stop-daemon --start --background --exec $prog -- $OPTIONS |
36 | eend $? |
37 | } |
38 | |
39 | stop() { |
40 | ebegin "Stopping OpenSM Infiniband Subnet Manager" |
41 | start-stop-daemon --stop --exec $prog |
42 | eend $? |
43 | } |