diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2008-01-31 07:01:19 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2008-01-31 07:01:19 +0000 |
commit | 821d1194f4d0d818dfdf52efdc81306dea05726d (patch) | |
tree | aa584d1da80b2a11d4fd4725b27e9803aba26638 /sys-cluster/openpbs-common | |
parent | Stable on amd64; bug 206502 (diff) | |
download | historical-821d1194f4d0d818dfdf52efdc81306dea05726d.tar.gz historical-821d1194f4d0d818dfdf52efdc81306dea05726d.tar.bz2 historical-821d1194f4d0d818dfdf52efdc81306dea05726d.zip |
Clean up.
Package-Manager: portage-2.1.4
Diffstat (limited to 'sys-cluster/openpbs-common')
6 files changed, 6 insertions, 161 deletions
diff --git a/sys-cluster/openpbs-common/ChangeLog b/sys-cluster/openpbs-common/ChangeLog index d6eafc9f05f8..c61064afda43 100644 --- a/sys-cluster/openpbs-common/ChangeLog +++ b/sys-cluster/openpbs-common/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-cluster/openpbs-common -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openpbs-common/ChangeLog,v 1.16 2007/05/21 18:22:32 jer Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openpbs-common/ChangeLog,v 1.17 2008/01/31 06:58:46 dberkholz Exp $ + + 31 Jan 2008; Donnie Berkholz <dberkholz@gentoo.org>; -files/pbs-init.d, + -openpbs-common-1.0.0.ebuild, -openpbs-common-1.1.0.ebuild: + Clean up. 21 May 2007; Jeroen Roovers <jer@gentoo.org> openpbs-common-1.1.1.ebuild: Stable for HPPA (bug #178510). diff --git a/sys-cluster/openpbs-common/files/digest-openpbs-common-1.0.0 b/sys-cluster/openpbs-common/files/digest-openpbs-common-1.0.0 deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/sys-cluster/openpbs-common/files/digest-openpbs-common-1.0.0 +++ /dev/null diff --git a/sys-cluster/openpbs-common/files/digest-openpbs-common-1.1.0 b/sys-cluster/openpbs-common/files/digest-openpbs-common-1.1.0 deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/sys-cluster/openpbs-common/files/digest-openpbs-common-1.1.0 +++ /dev/null diff --git a/sys-cluster/openpbs-common/files/pbs-init.d b/sys-cluster/openpbs-common/files/pbs-init.d deleted file mode 100644 index ea7532c7d886..000000000000 --- a/sys-cluster/openpbs-common/files/pbs-init.d +++ /dev/null @@ -1,114 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later - -opts="start stop restart" - -SERVERPID="/usr/spool/PBS/server_priv/server.lock" -MOMPID="/usr/spool/PBS/mom_priv/mom.lock" -SCHEDULER="${PBS_SCHEDULER:=pbs_sched}" -SCHEDPATH="`which ${SCHEDULER}`" -SCHEDFILE="`basename ${SCHEDPATH}`" -SCHEDPID="${PBS_SCHEDULER_PID:=/usr/spool/PBS/sched_priv/sched.lock}" - -depend() { - need net -} - -checkconfig() { - - HOSTNAME="`hostname`" - - if [ ! -e /usr/spool/PBS/server_name ] ; then - eerror "Missing config file /usr/spool/PBS/server_name" - return 1 - else - PBS_SERVER_NAME="`cat /usr/spool/PBS/server_name`" - if [ "x${HOSTNAME}" == "x${PBS_SERVER_NAME}" ] ; then - PBS_START_SERVER=1; - else - PBS_START_SERVER=0; - fi - fi - - if [ ! -e /usr/spool/PBS/mom_priv/config ] ; then - eerror "Missing config file /usr/spool/PBS/mom_priv/config" - return 1 - elif [ "${PBS_START_SERVER}" -eq 1 ] ; then - PBS_START_MOM="${PBS_SERVER_AND_MOM:=1}" - else - PBS_START_MOM="1" - fi - - if [ "${PBS_START_SERVER}" -eq 1 ] ; then - if [ ! -e /usr/spool/PBS/server_priv/nodes ] ; then - eerror "The startup script has detected this node is a server" - eerror "from the file /usr/spool/PBS/server_name," - eerror "but the config file /usr/spool/PBS/server_priv/nodes is missing" - return 1 - fi - fi - - if [ "${PBS_START_SERVER}" -eq 1 ] ; then - if [ -z "${SCHEDFILE}" ]; then - eerror "No scheduler defined and can't find pbs_sched" - return 1 - elif [ ! -x ${SCHEDPATH} ] ; then - eerror "Scheduler defined but can't be executed" - return 1 - fi - fi -} - -start() { - checkconfig || return 1 - - if [ "${PBS_START_MOM}" -gt 0 ] ; then - ebegin "Starting pbs_mom" - start-stop-daemon --start --pidfile ${MOMPID} \ - --startas /usr/sbin/pbs_mom - fi - - if [ "${PBS_START_SERVER}" -gt 0 ] ; then - ebegin "Starting pbs_server" - start-stop-daemon --start --quiet --pidfile ${SERVERPID} \ - --startas /usr/sbin/pbs_server - - ebegin "Starting ${SCHEDFILE}" - start-stop-daemon --start --quiet --pidfile ${SCHEDPID} \ - --startas ${SCHEDPATH} - fi - - eend $? -} - -stop() { - checkconfig || return 1 - - ret1=0 - ret2=0 - ret3=0 - if [ -e ${MOMPID} ] ; then - ebegin "Stopping pbs_mom" - start-stop-daemon --stop --pidfile ${MOMPID} - ret1=$? - rm -f ${MOMPID} - fi - - if [ -e ${SERVERPID} ] ; then - ebegin "Stopping pbs_server" - qterm -t immediate - ret2=$? - rm -f ${SERVERPID} - fi - - if [ -e ${SCHEDPID} ] ; then - ebegin "Stopping ${SCHEDFILE}" - start-stop-daemon --stop --pidfile ${SCHEDPID} - ret3=$? - rm -f ${SCHEDPID} - fi - - let ret=$(( $ret1 + $ret2 + $ret3 )) - eend $ret -} diff --git a/sys-cluster/openpbs-common/openpbs-common-1.0.0.ebuild b/sys-cluster/openpbs-common/openpbs-common-1.0.0.ebuild deleted file mode 100644 index 230536256fb3..000000000000 --- a/sys-cluster/openpbs-common/openpbs-common-1.0.0.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openpbs-common/openpbs-common-1.0.0.ebuild,v 1.4 2007/07/14 22:18:04 mr_bones_ Exp $ - -inherit eutils - -DESCRIPTION="Shared files for all OpenPBS implementations in Gentoo" -HOMEPAGE="http://www.gentoo.org" -SRC_URI="" -LICENSE="GPL-2" - -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 x86" -IUSE="" - -DEPEND="" -RDEPEND="virtual/pbs" - -src_install() { - newinitd ${FILESDIR}/pbs-init.d pbs - newconfd ${FILESDIR}/pbs-conf.d pbs -} diff --git a/sys-cluster/openpbs-common/openpbs-common-1.1.0.ebuild b/sys-cluster/openpbs-common/openpbs-common-1.1.0.ebuild deleted file mode 100644 index 70c8e9b90fe1..000000000000 --- a/sys-cluster/openpbs-common/openpbs-common-1.1.0.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openpbs-common/openpbs-common-1.1.0.ebuild,v 1.3 2006/05/23 20:20:41 corsair Exp $ - -inherit eutils - -DESCRIPTION="Shared files for all OpenPBS implementations in Gentoo" -HOMEPAGE="http://www.gentoo.org" -SRC_URI="" -LICENSE="GPL-2" - -SLOT="0" -KEYWORDS="~amd64 ~ppc ppc64 x86" -IUSE="" - -DEPEND="" -RDEPEND="virtual/pbs" - -src_install() { - newinitd ${FILESDIR}/pbs-init.d pbs - newconfd ${FILESDIR}/pbs-conf.d pbs - newenvd ${FILESDIR}/pbs-env.d 25pbs -} |