From: | "Alexey Shvetsov (alexxy)" <alexxy@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-cluster/slurm/files: slurmctld.initd slurmdbd.initd slurm.confd slurmd.initd |
Date: | Sun, 03 Jul 2011 23:23:33 |
Message-Id: | 20110703232321.35E652004B@flycatcher.gentoo.org |
1 | alexxy 11/07/03 23:23:21 |
2 | |
3 | Added: slurmctld.initd slurmdbd.initd slurm.confd |
4 | slurmd.initd |
5 | Log: |
6 | [sys-cluster/slurm] Initial import |
7 | |
8 | (Portage version: 2.2.0_alpha43/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.1 sys-cluster/slurm/files/slurmctld.initd |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurmctld.initd?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurmctld.initd?rev=1.1&content-type=text/plain |
15 | |
16 | Index: slurmctld.initd |
17 | =================================================================== |
18 | #!/sbin/runscript |
19 | # Copyright 1999-2011 Gentoo Foundation |
20 | # Distributed under the terms of the GNU General Public License v2 |
21 | # $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmctld.initd,v 1.1 2011/07/03 23:23:21 alexxy Exp $ |
22 | |
23 | opts="reload" |
24 | |
25 | [[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm |
26 | |
27 | depend() { |
28 | local _need="net" |
29 | [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" |
30 | after logger |
31 | need ${_need} |
32 | } |
33 | |
34 | checkconfig() { |
35 | if [ ! -e "/etc/slurm/slurm.conf" ]; then |
36 | eerror "Missing config /etc/slurm/slurm.conf" |
37 | eerror "Customize sample one or generate new by configurator.html" |
38 | eerror "in slurm doc directory" |
39 | return 1 |
40 | fi |
41 | } |
42 | |
43 | start() { |
44 | ebegin "Starting slurm control daemon" |
45 | start-stop-daemon --start --quiet --background \ |
46 | --pidfile /var/run/slurm/slurmctld.pid \ |
47 | --user slurm \ |
48 | --group slurm \ |
49 | --exec /usr/sbin/slurmctld -- ${SLURMCTLD_OPTS} |
50 | eend $? |
51 | } |
52 | |
53 | stop() { |
54 | ebegin "Stopping slurm control daemon" |
55 | start-stop-daemon --stop --pidfile /var/run/slurm/slurmctld.pid |
56 | eend $? |
57 | } |
58 | |
59 | reload() { |
60 | ebegin "Reloading slurm daemon configuration" |
61 | killproc slurmctld -HUP |
62 | eend $? |
63 | } |
64 | |
65 | |
66 | |
67 | 1.1 sys-cluster/slurm/files/slurmdbd.initd |
68 | |
69 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurmdbd.initd?rev=1.1&view=markup |
70 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurmdbd.initd?rev=1.1&content-type=text/plain |
71 | |
72 | Index: slurmdbd.initd |
73 | =================================================================== |
74 | #!/sbin/runscript |
75 | # Copyright 1999-2011 Gentoo Foundation |
76 | # Distributed under the terms of the GNU General Public License v2 |
77 | # $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmdbd.initd,v 1.1 2011/07/03 23:23:21 alexxy Exp $ |
78 | |
79 | opts="reload" |
80 | |
81 | [[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm |
82 | |
83 | depend() { |
84 | local _need="net" |
85 | [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" |
86 | after logger |
87 | need ${_need} |
88 | } |
89 | |
90 | checkconfig() { |
91 | if [ ! -e "/etc/slurm/slurmdbd.conf" ]; then |
92 | eerror "Missing config /etc/slurm/slurmdbd.conf" |
93 | return 1 |
94 | fi |
95 | } |
96 | |
97 | start() { |
98 | ebegin "Starting slurmdb daemon" |
99 | start-stop-daemon --start --quiet --background \ |
100 | --pidfile /var/run/slurm/slurmddb.pid \ |
101 | --user slurm \ |
102 | --group slurm \ |
103 | --exec /usr/sbin/slurmddb -- ${SLURMD_OPTS} |
104 | eend $? |
105 | } |
106 | |
107 | stop() { |
108 | ebegin "Stopping slurmdb daemon" |
109 | start-stop-daemon --stop --pidfile /var/run/slurm/slurmdbd.pid |
110 | eend $? |
111 | } |
112 | |
113 | reload() { |
114 | ebegin "Reloading slurmdb daemon configuration" |
115 | killproc slurmdbd -HUP |
116 | eend $? |
117 | } |
118 | |
119 | |
120 | |
121 | 1.1 sys-cluster/slurm/files/slurm.confd |
122 | |
123 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurm.confd?rev=1.1&view=markup |
124 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurm.confd?rev=1.1&content-type=text/plain |
125 | |
126 | Index: slurm.confd |
127 | =================================================================== |
128 | # /etc/conf.d/slurm: config file for /etc/init.d/slurm* |
129 | SLURMCTLD_OPTIONS="" |
130 | SLURMDBD_OPTIONS="" |
131 | SLURMD_OPTIONS="" |
132 | SLURM_USE_MUNGE="0" |
133 | |
134 | |
135 | |
136 | 1.1 sys-cluster/slurm/files/slurmd.initd |
137 | |
138 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurmd.initd?rev=1.1&view=markup |
139 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/slurm/files/slurmd.initd?rev=1.1&content-type=text/plain |
140 | |
141 | Index: slurmd.initd |
142 | =================================================================== |
143 | #!/sbin/runscript |
144 | # Copyright 1999-2011 Gentoo Foundation |
145 | # Distributed under the terms of the GNU General Public License v2 |
146 | # $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmd.initd,v 1.1 2011/07/03 23:23:21 alexxy Exp $ |
147 | |
148 | opts="reload" |
149 | |
150 | [[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm |
151 | |
152 | depend() { |
153 | local _need="net" |
154 | [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" |
155 | after logger |
156 | need ${_need} |
157 | } |
158 | |
159 | checkconfig() { |
160 | if [ ! -e "/etc/slurm/slurm.conf" ]; then |
161 | eerror "Missing config /etc/slurm/slurm.conf" |
162 | eerror "Customize sample one or generate new by configurator.html" |
163 | eerror "in slurm doc directory" |
164 | return 1 |
165 | fi |
166 | } |
167 | |
168 | start() { |
169 | ebegin "Starting slurm daemon" |
170 | start-stop-daemon --start --quiet --background \ |
171 | --pidfile /var/run/slurm/slurmd.pid \ |
172 | --user slurm \ |
173 | --group slurm \ |
174 | --exec /usr/sbin/slurmd -- ${SLURMD_OPTS} |
175 | eend $? |
176 | } |
177 | |
178 | stop() { |
179 | ebegin "Stopping slurm daemon" |
180 | start-stop-daemon --stop --pidfile /var/run/slurm/slurmd.pid |
181 | eend $? |
182 | } |
183 | |
184 | reload() { |
185 | ebegin "Reloading slurm daemon configuration" |
186 | killproc slurmd -HUP |
187 | eend $? |
188 | } |