# Restarting the Spooler

Updated: 10/28/2020, 12:05:40 PM
Created: 10/28/2020, 12:05:40 PM
Last Updated By: Mike Street
Read Time: 1 minute(s)

# Description

Individual jBASE despooler processes can be restarted by either using the SP-RESUME command directly, or from the SP-JOBS menu. For example:

SP-RESUME LASER
1

Alternatively, all defined form queue despooler processes can be started at once by using the REST-SPOOLER command. For example:

REST-SPOOLER
1

# UNIX

If the restart of despooler processes is required at system boot time, a script (for example, jSpoolInit) should be created to restart the required formqueue despoolers. Place the script in the /etc/init.d (or similar) directory and then set a link in the /etc/rc2.d (or similar) directory back to the script in the /etc/init.d directory. The script should use multiple invocations of SP-RESUME to restart selected formqueue despoolers or alternatively, it can use the REST-SPOOLER command to resume all defined printer queues.

# Example

jSpoolInit
JBCRELEASEDIR=/opt/jbase/CurrentVersion
export JBCRELEASEDIR
PATH=/etc:/bin:/usr/bin:$JBCRELEASEDIR/bin
LD_LIBRARY_PATH=$JBCRELEASEDIR/lib
#AIX use LIBPATH
export PATH LD_LIBRARY_PATH
case "$1" in
"start")
echo "Starting jBASE despoolers"
SP-RESUME STANDARD or :REST-SPOOLER
;;
"stop") ;;
esac
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Windows

To restart the spooler at boot time, create a Windows Scheduled Task.