You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

We assume that $SCHEDULER_HOME is the installation path of the JobScheduler.

Open a shell as root

 > cd /etc/init.d 
 > cp [installation path of the JobScheduler]/bin/jobscheduler.sh jobscheduler

For CentOS or Suse

 > chkconfig --add jobscheduler

For Ubuntu or Debian

 > update-rc.d jobscheduler defaults  

If you have an JobScheduler installation before 1.3.12.2298 then you have to edit the startscript ./bin/jobscheduler.sh before you copy it to /etc/init.d.

Change

 ...
 if [ -x "`dirname $0`/jobscheduler_environment_variables.sh" ]
 then
   . "`dirname $0`/jobscheduler_environment_variables.sh"
 else
   echo "... the file `dirname $0`/jobscheduler_environment_variables.sh doesn't exist."
   exit 4
 fi
 
 if [ -x "`dirname $0`/../user_bin/jobscheduler_environment_variables.sh" ]
 then
   . "`dirname $0`/../user_bin/jobscheduler_environment_variables.sh"
 fi
 ...

to

 ...
 SCHEDULER_BINDIR="`dirname $0`"
 
 if [ -x "$\{SCHEDULER_BINDIR\}/jobscheduler_environment_variables.sh" ]
 then
   . "$\{SCHEDULER_BINDIR\}/jobscheduler_environment_variables.sh"
 else
   SCHEDULER_BINDIR="<span style="color:red">[installation path]/bin</span>"
   if [ -x "$\{SCHEDULER_BINDIR\}/jobscheduler_environment_variables.sh" ]
   then
     . "$\{SCHEDULER_BINDIR\}/jobscheduler_environment_variables.sh"
   else
     echo "... the file $\{SCHEDULER_BINDIR\}/jobscheduler_environment_variables.sh doesn't exist."
     exit 4
   fi
 fi
 
 if [ -x "$\{SCHEDULER_BINDIR\}/../user_bin/jobscheduler_environment_variables.sh" ]
 then
   . "$\{SCHEDULER_BINDIR\}/../user_bin/jobscheduler_environment_variables.sh"
 fi
 ...

where you have to set the installation path of the JobScheduler into above line SCHEDULER_BINDIR="<span style="color:red">installation path/bin</span>".

  • No labels