[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] some fedora core 6 questions...

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
Sent: April 2, 2007 10:43 AM
To: condor-users@xxxxxxxxxxx
Subject: [Condor-users] some fedora core 6 questions...


I have managed to install Condor on FC6 on a x86 machine. Problem is I have not been able to make Condor to be started automatically every time the machine is booted and also I have not been able to add it to the system path so that I can use a command without specifying the whole path. As a result, I have to do stuff like ~condor/sbin/condor_master instead of just condor_master.

I am the complete Linux doofus and I have tried to follow the instructions in the manual to no avail. I dont know if FC6 uses System V (whatever that is), but I have added the condor.boot example to /etc/init.d (except i renamed it to condor) and also created soft links to it in rc.d and all the rc*.d, but condor still doesn't autostart. Can someone please help me out with these two problems?!
(my release directory is ~condor and local directory is /condor)


Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.