diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2011-07-03 23:23:21 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2011-07-03 23:23:21 +0000 |
commit | 0f8d7638dd0028a73eca75d225fd9ecf486dd59d (patch) | |
tree | b6b5d992e93ec3aa91f9ff8a53643383610be56a /sys-cluster/slurm/files | |
parent | [sys-cluster/maui] Add slurm || pbs support to maui (diff) | |
download | gentoo-2-0f8d7638dd0028a73eca75d225fd9ecf486dd59d.tar.gz gentoo-2-0f8d7638dd0028a73eca75d225fd9ecf486dd59d.tar.bz2 gentoo-2-0f8d7638dd0028a73eca75d225fd9ecf486dd59d.zip |
[sys-cluster/slurm] Initial import
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/slurm/files')
-rw-r--r-- | sys-cluster/slurm/files/slurm.confd | 5 | ||||
-rw-r--r-- | sys-cluster/slurm/files/slurmctld.initd | 46 | ||||
-rw-r--r-- | sys-cluster/slurm/files/slurmd.initd | 46 | ||||
-rw-r--r-- | sys-cluster/slurm/files/slurmdbd.initd | 44 |
4 files changed, 141 insertions, 0 deletions
diff --git a/sys-cluster/slurm/files/slurm.confd b/sys-cluster/slurm/files/slurm.confd new file mode 100644 index 000000000000..13b69146e921 --- /dev/null +++ b/sys-cluster/slurm/files/slurm.confd @@ -0,0 +1,5 @@ +# /etc/conf.d/slurm: config file for /etc/init.d/slurm* +SLURMCTLD_OPTIONS="" +SLURMDBD_OPTIONS="" +SLURMD_OPTIONS="" +SLURM_USE_MUNGE="0" diff --git a/sys-cluster/slurm/files/slurmctld.initd b/sys-cluster/slurm/files/slurmctld.initd new file mode 100644 index 000000000000..0ebba3ea8616 --- /dev/null +++ b/sys-cluster/slurm/files/slurmctld.initd @@ -0,0 +1,46 @@ +#!/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/slurm/files/slurmctld.initd,v 1.1 2011/07/03 23:23:21 alexxy Exp $ + +opts="reload" + +[[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm + +depend() { + local _need="net" + [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" + after logger + need ${_need} +} + +checkconfig() { + if [ ! -e "/etc/slurm/slurm.conf" ]; then + eerror "Missing config /etc/slurm/slurm.conf" + eerror "Customize sample one or generate new by configurator.html" + eerror "in slurm doc directory" + return 1 + fi +} + +start() { + ebegin "Starting slurm control daemon" + start-stop-daemon --start --quiet --background \ + --pidfile /var/run/slurm/slurmctld.pid \ + --user slurm \ + --group slurm \ + --exec /usr/sbin/slurmctld -- ${SLURMCTLD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping slurm control daemon" + start-stop-daemon --stop --pidfile /var/run/slurm/slurmctld.pid + eend $? +} + +reload() { + ebegin "Reloading slurm daemon configuration" + killproc slurmctld -HUP + eend $? +} diff --git a/sys-cluster/slurm/files/slurmd.initd b/sys-cluster/slurm/files/slurmd.initd new file mode 100644 index 000000000000..1014630e633c --- /dev/null +++ b/sys-cluster/slurm/files/slurmd.initd @@ -0,0 +1,46 @@ +#!/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/slurm/files/slurmd.initd,v 1.1 2011/07/03 23:23:21 alexxy Exp $ + +opts="reload" + +[[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm + +depend() { + local _need="net" + [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" + after logger + need ${_need} +} + +checkconfig() { + if [ ! -e "/etc/slurm/slurm.conf" ]; then + eerror "Missing config /etc/slurm/slurm.conf" + eerror "Customize sample one or generate new by configurator.html" + eerror "in slurm doc directory" + return 1 + fi +} + +start() { + ebegin "Starting slurm daemon" + start-stop-daemon --start --quiet --background \ + --pidfile /var/run/slurm/slurmd.pid \ + --user slurm \ + --group slurm \ + --exec /usr/sbin/slurmd -- ${SLURMD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping slurm daemon" + start-stop-daemon --stop --pidfile /var/run/slurm/slurmd.pid + eend $? +} + +reload() { + ebegin "Reloading slurm daemon configuration" + killproc slurmd -HUP + eend $? +} diff --git a/sys-cluster/slurm/files/slurmdbd.initd b/sys-cluster/slurm/files/slurmdbd.initd new file mode 100644 index 000000000000..6d3a97a54385 --- /dev/null +++ b/sys-cluster/slurm/files/slurmdbd.initd @@ -0,0 +1,44 @@ +#!/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/slurm/files/slurmdbd.initd,v 1.1 2011/07/03 23:23:21 alexxy Exp $ + +opts="reload" + +[[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm + +depend() { + local _need="net" + [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" + after logger + need ${_need} +} + +checkconfig() { + if [ ! -e "/etc/slurm/slurmdbd.conf" ]; then + eerror "Missing config /etc/slurm/slurmdbd.conf" + return 1 + fi +} + +start() { + ebegin "Starting slurmdb daemon" + start-stop-daemon --start --quiet --background \ + --pidfile /var/run/slurm/slurmddb.pid \ + --user slurm \ + --group slurm \ + --exec /usr/sbin/slurmddb -- ${SLURMD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping slurmdb daemon" + start-stop-daemon --stop --pidfile /var/run/slurm/slurmdbd.pid + eend $? +} + +reload() { + ebegin "Reloading slurmdb daemon configuration" + killproc slurmdbd -HUP + eend $? +} |