Skip to main content
ExLibris
  • Subscribe by RSS
  • ExLibris Dev

    csh command to start job daemon

    • Article Type: General
    • Product: Aleph
    • Product Version: 20, 21, 22, 23

    Description:
    Is there a csh command which could be used to restart the job daemon, for instance, with cron?

    Resolution:
    The command would be:
    csh -f /exlibris/aleph/a23_1/aleph/proc/jobd > & /exlibris/aleph/u23_1/alephe/scratch/jobd.log &
    <where 23_1 is the aleph instance>

    A complete cron, courtesy of Eric Bevier at University of Minnesota:
    We have two tiny shell scripts that stop and start the job daemon:
    job_list_stop:
    #!/bin/csh -f
    source /exlibris/aleph/u23_1/alephe/aleph_start
    source $aleph_proc/def_local_env
    setenv l_aleph_app_version a${ALEPH_VERSION}_${ALEPH_COPY}
    echo "shutdown jobd..."
    aleph_ps kill "$aleph_exe/jobd $l_aleph_app_version" >& /dev/null
    echo " "
    exit

    job_list_start:
    #!/bin/csh -f
    source /exlibris/aleph/u23_1/alephe/aleph_start
    source $aleph_proc/def_local_env
    echo "starting jobd... "
    csh -f $aleph_proc/jobd $ALEPH_VERSION >& /dev/null
    echo " "
    exit



    We run the scripts from cron, like this:
    59 00 * * 0 csh -f /exlibris/aleph/u23_1/alephe/job_list_stop
    02 03 * * 0 csh -f /exlibris/aleph/u23_1/alephe/job_list_start


    • Article last edited: 21/March/2016
    //doorbell.io feedback widged