#!/bin/sh # condor script for SysV-style init boot scripts. # # Usually this would be installed as /etc/init.d/condor with soft # links put in from /etc/rc*.d to point back to /etc/init.d/condor to # determine when Condor should be started and stopped. Exact # directories or details of the links you should use will vary from # platform to platform. # # To customize, all you need to do is edit the MASTER line below. # condor_install (if run as root) will do that for you. The PS line # should be the full path and arguments to a ps command that dumps out # all running processes. This should be correct on all platforms. # # Author: Derek Wright 2/27/98 # # chkconfig: - 87 13 # description: NFS is a popular protocol for file sharing across \ # TCP/IP networks. This service provides NFS file \ # locking functionality. # @(#) Modified for RedHat sysv init: -EAM 13Mar2001 # Source function library. . /etc/rc.d/init.d/functions ##MASTER=/home/condor/sbin/condor_master MASTER=/usr/local/condor/sbin/condor_master case $1 in start) echo -n "Starting condor: " touch /var/lock/subsys/condor daemon $MASTER echo ;; stop) echo -n "Stopping condor:" killproc $MASTER -QUIT echo rm -f /var/lock/subsys/condor ;; restart) $0 stop $0 start ;; status) status $MASTER ;; *) echo "Usage: condor {start|stop|restart|status}" ;; esac