Reboot cron entry – Gasboy CFN III Mgnr's Mnl V3.4 User Manual
Page 224

Automatic Cron Commands
Page 208
MDE-4315 CFN Series CFN III Manager’s Manual for Windows NT · August 2004
Since circumstances surrounding crashes and reboots vary, be careful in designing command
files intended to execute after these events, so that the benefit of having operations resume
automatically is balanced against the risk of not checking out the system before allowing
customers to get fuel.
Severe crashes that are likely to have serious consequences require the command RUN;I to
restart, while RUN will work after mild ones. You might wish to omit RESTORE from the
above command file and change RUN;I to RUN so that the system will not restart
automatically after severe crashes or if tables are reconstructed.
If you have cron restore reconstructed tables automatically after a crash, make sure a current
and complete backup is present in the root directory on the default drive. You can use a cron
command to automatically back up system data every day.
Reboot cron Entry
A cron entry that begins with a caret (^) will be executed when the Site Controller is rebooted.
The caret is all that is needed to specify this condition. Remember to leave a space between the
caret and the command. If there is more than one of this type of entry, only the first will be
executed.
^ [-]command
The optional hyphen (-) before the command name suppresses output to the printer. This
allows the command to execute while someone is logged on to the command terminal. Will
display REBOOT in the When column of P CR output.
P* TYPE CRASH.CMD
↵
* to be executed by cron after a crash
disable history
log message -- Saving Crash Log --
* the following commands save diagnostic information
* in a disk file
enable dump;a CRASH.LOG
print date
print tip
print diagnostics 1
print history 80-
* the following command restores reconstructed
* tables from BACKUP.DTA
* use only if you keep current backups
* of system data
restore reconstructed except sales transactions from BACKUP.DTA
print monitor
* the following command restarts the site
* after a severe crash
* use RUN without options to restart site only
* if crash was not severe
run
echo ------------
disable dump
log message -- Restarting Site --
enable history
P*