From: | "Alexys Jacob (ultrabug)" <ultrabug@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-cluster/moosefs/files: mfs.initd mfs.confd |
Date: | Tue, 05 Jul 2011 07:45:51 |
Message-Id: | 20110705074536.ABE2C2001D@flycatcher.gentoo.org |
1 | ultrabug 11/07/05 07:45:36 |
2 | |
3 | Added: mfs.initd mfs.confd |
4 | Log: |
5 | New ebuild sys-cluster/moosefs, related to bug #338004. |
6 | |
7 | (Portage version: 2.1.10.3/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-cluster/moosefs/files/mfs.initd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/moosefs/files/mfs.initd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/moosefs/files/mfs.initd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: mfs.initd |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | |
19 | depend() { |
20 | need net |
21 | } |
22 | |
23 | chkconfig() { |
24 | [ -z "${ROLES}" ] && { eerror "No role defined !"; return 1;} |
25 | for ROLE in ${ROLES}; do |
26 | if [ ! -f /etc/mfs/${ROLE}.cfg ]; then |
27 | eerror "Missing configuration file for role ${ROLE} !" |
28 | return 1 |
29 | fi |
30 | done |
31 | return 0 |
32 | } |
33 | |
34 | start_roles() { |
35 | eindent |
36 | for ROLE in ${ROLES}; do |
37 | einfo "${ROLE}" |
38 | "${ROLE}" start 2>&1 | logger -s -p daemon.info -t mfs |
39 | done |
40 | eoutdent |
41 | return 0 |
42 | } |
43 | |
44 | start() { |
45 | ebegin "Starting mfs node" |
46 | chkconfig && start_roles |
47 | eend $? |
48 | } |
49 | |
50 | stop() { |
51 | ebegin "Stopping mfs node" |
52 | eindent |
53 | for ROLE in ${ROLES}; do |
54 | einfo "${ROLE}" |
55 | "${ROLE}" stop 2>&1 | logger -s -p daemon.info -t mfs |
56 | done |
57 | eoutdent |
58 | eend 0 |
59 | } |
60 | |
61 | |
62 | |
63 | 1.1 sys-cluster/moosefs/files/mfs.confd |
64 | |
65 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/moosefs/files/mfs.confd?rev=1.1&view=markup |
66 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/moosefs/files/mfs.confd?rev=1.1&content-type=text/plain |
67 | |
68 | Index: mfs.confd |
69 | =================================================================== |
70 | # Which mooseFS roles should we start ? |
71 | # Possible values: mfsmetalogger mfschunkserver mfsmaster |
72 | #ROLES="" |