Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/maui/files: maui.initd
Date: Sun, 03 Jul 2011 23:19:45
Message-Id: 20110703231935.E127420051@flycatcher.gentoo.org
1 alexxy 11/07/03 23:19:35
2
3 Modified: maui.initd
4 Log:
5 [sys-cluster/maui] Add slurm || pbs support to maui
6
7 (Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 sys-cluster/maui/files/maui.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/files/maui.initd?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/files/maui.initd?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/maui/files/maui.initd?r1=1.2&r2=1.3
15
16 Index: maui.initd
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- maui.initd 29 Jun 2011 16:15:04 -0000 1.2
23 +++ maui.initd 3 Jul 2011 23:19:35 -0000 1.3
24 @@ -1,38 +1,17 @@
25 #!/sbin/runscript
26 # Copyright 1999-2011 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v 1.2 2011/06/29 16:15:04 alexxy Exp $
29 -
30 -. /etc/conf.d/torque
31 -PBS_SERVER_HOME="$(. /etc/env.d/25torque; echo ${PBS_SERVER_HOME})"
32 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v 1.3 2011/07/03 23:19:35 alexxy Exp $
33
34 depend() {
35 need net
36 - after pbs_server
37 - before pbs_mom
38 + after pbs_server slurmctld
39 + before pbs_mom slurmd
40 after logger
41 }
42
43 -checkconfig() {
44 - for i in "server_name"; do
45 - if [ ! -e ${PBS_SERVER_HOME}/${i} ]; then
46 - eerror "Missing config file ${PBS_SERVER_HOME}/${i}"
47 - return 1
48 - fi
49 - done
50 -
51 - if [ -z "$(grep 'queue_type' ${PBS_SERVER_HOME}/server_priv/queues/*)" ]; then
52 - eerror "No queues have been defined yet."
53 - return 1
54 - fi
55 -}
56 -
57 start() {
58 - checkconfig || return 1
59 -
60 ebegin "Starting Maui scheduler"
61 - local extra_args=""
62 -
63 start-stop-daemon --start --exec /usr/sbin/maui
64 eend ${?}
65 }