diff options
Diffstat (limited to 'sys-cluster/torque/files/pbs_sched-init.d-2.2.1')
-rw-r--r-- | sys-cluster/torque/files/pbs_sched-init.d-2.2.1 | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sys-cluster/torque/files/pbs_sched-init.d-2.2.1 b/sys-cluster/torque/files/pbs_sched-init.d-2.2.1 deleted file mode 100644 index b882732cb9b2..000000000000 --- a/sys-cluster/torque/files/pbs_sched-init.d-2.2.1 +++ /dev/null @@ -1,47 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -. /etc/conf.d/torque - -depend() { - need net - after pbs_server - before pbs_mom - 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 Torque pbs_sched" - local extra_args="" - if [ -n "${PBS_SCHED_LOG}" ]; then - extra_args="-- -L ${PBS_SCHED_LOG}" - fi - - start-stop-daemon --start -p ${PBS_SERVER_HOME}/sched_priv/sched.lock \ - --exec /usr/sbin/pbs_sched ${extra_args} - eend ${?} -} - -stop() { - ebegin "Stopping Torque pbs_sched" - start-stop-daemon --stop -p ${PBS_SERVER_HOME}/sched_priv/sched.lock - eend ${?} -} -# vim:ts=4 |