diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2011-07-03 23:19:35 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2011-07-03 23:19:35 +0000 |
commit | a41e09b9edb18a22770759d9f0a23684c76ab600 (patch) | |
tree | 33029197999105484dbaf7bd20952387ab1fa7a8 /sys-cluster/maui/files | |
parent | Hopefully getting the manifest signed again (diff) | |
download | gentoo-2-a41e09b9edb18a22770759d9f0a23684c76ab600.tar.gz gentoo-2-a41e09b9edb18a22770759d9f0a23684c76ab600.tar.bz2 gentoo-2-a41e09b9edb18a22770759d9f0a23684c76ab600.zip |
[sys-cluster/maui] Add slurm || pbs support to maui
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/maui/files')
-rw-r--r-- | sys-cluster/maui/files/maui.initd | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/sys-cluster/maui/files/maui.initd b/sys-cluster/maui/files/maui.initd index 0bfce8a267ec..b8d747e1c4b8 100644 --- a/sys-cluster/maui/files/maui.initd +++ b/sys-cluster/maui/files/maui.initd @@ -1,38 +1,17 @@ #!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v 1.2 2011/06/29 16:15:04 alexxy Exp $ - -. /etc/conf.d/torque -PBS_SERVER_HOME="$(. /etc/env.d/25torque; echo ${PBS_SERVER_HOME})" +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v 1.3 2011/07/03 23:19:35 alexxy Exp $ depend() { need net - after pbs_server - before pbs_mom + after pbs_server slurmctld + before pbs_mom slurmd after logger } -checkconfig() { - for i in "server_name"; do - if [ ! -e ${PBS_SERVER_HOME}/${i} ]; then - eerror "Missing config file ${PBS_SERVER_HOME}/${i}" - return 1 - fi - done - - if [ -z "$(grep 'queue_type' ${PBS_SERVER_HOME}/server_priv/queues/*)" ]; then - eerror "No queues have been defined yet." - return 1 - fi -} - start() { - checkconfig || return 1 - ebegin "Starting Maui scheduler" - local extra_args="" - start-stop-daemon --start --exec /usr/sbin/maui eend ${?} } |