Rather than making softlinks by hand use the chkconfig tool to set up the condor daemons to start automatically when the machine boots. Start as root and delete the symlinks and /etc/init.c/condor.boot. Now copy condor.boot to /etc/init.d/condor:
cp condor.boot /etc/init.d/condor chmod 755 /etc/init.d/condor
Edit the file. Make sure CONDOR_ROOT, CONDOR_MASTER and CONDOR_CONFIG at the start of the script all point to the appropriate locations for the machine. Save and close the file.
Now use chkconfig to add it to the appropriate init levels like this:
[root@ttc-ichesal-lnx root]# chkconfig --levels 345 condor on [root@ttc-ichesal-lnx root]# chkconfig --list condor condor 0:off 1:off 2:off 3:on 4:on 5:on 6:off
Now use service to start and stop condor on the machine:
[root@ttc-ichesal-lnx root]# ps -ef | grep condor root 17082 17002 0 10:54 pts/0 00:00:00 grep condor [root@ttc-ichesal-lnx root]# service condor start Starting up Condor ps -e[root@ttc-ichesal-lnx root]# ps -ef | grep condor ttcbatch 17125 1 0 10:54 ? 00:00:00 /local/linux/condor/sbin/condor_master ttcbatch 17126 17125 1 10:54 ? 00:00:00 condor_startd -f root 17127 17126 0 10:54 ? 00:00:00 /opt/condor/sbin/condor_starter -classad root 17128 17127 1 10:54 ? 00:00:00 sh -c /local/linux/jdk/current/bin/java -Xmx1001m -classpath /opt/condor/lib;/opt/condor/lib/scimark2lib.jar;. CondorJavaInfo old 2 root 17129 17128 6 10:54 ? 00:00:00 /local/linux/jdk/current/bin/java -Xmx1001m -classpath /opt/condor/lib root 17133 17002 0 10:55 pts/0 00:00:00 grep condor
And finally test everything by rebooting the machine.
- Ian
From:
condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of simon kagwe
Hi,
Bored
stiff? Loosen up... |