Skip to end of metadata
Go to start of metadata

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

 ...
 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="[installation path]/bin"
   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="installation path/bin".

 

Write a comment…