Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Conversion corrections

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

Open a shell as root

Code Block

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

For CentOS or Suse

Code Block

 > chkconfig --add jobscheduler

For Ubuntu or Debian

Code Block

 > update-rc.d jobscheduler defaults  

If you have a 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

Code Block

 ...
 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

Code Block

 ...
 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>bin".