Installation guide

40 DC 900-1325I
Freeway Server-Resident Application (SRA) Programmer Guide
If the file rc.startsra already exists on your system, then refer to Section 2.7.2 for adding
your SRA start commands. If the file doesn’t exist (you see the above results), then use
the following steps to create this file:
Step 1: Login to the FreeBSD shell and create the file in the non-volatile storage area:
cd /usr/local/freeway/boot.src
mount -u -o rw /usr
vi rc.startsra
Step 2: Depending on where you are running your SRA, insert one of the following
text blocks in the file to start your SRA. The first line is optional as it just writes the text
“Starting my SRA” to the Freeway console. The second line starts the SRA and diverts
any text that the SRA may generate (from printf statements) into the null device (bit
bucket). If you are unfamiliar with the vi editor, type i to start inserting text, then
<ESC> to get out of insert mode:
[If running your SRA from the operational directory, enter the
following text:]
echo Starting my SRA > /dev/console
cd /tmp/boot
./mysra > /dev/null &
- or -
[If running your SRA from the binary directory, enter the following
text:]
echo Starting my SRA > /dev/console
cd /usr/local/freeway/client/bsd/bin
./mysra > /dev/null &
Step 3: Exit the vi editor while saving the file. Then mount the /usr partition back to
read-only and reboot:
:x [from inside vi editor]
mount -u -o ro /usr
reboot