User guide

180 DC 900-1333Q
Freeway User Guide
6.6 Customizing the SRA Startup File
Use the following procedure to create or customize the SRA startup file (rc.startsra):
6.6.1 Main SRA Startup File (rc.startsra)
Instructions for starting a Server Resident Application (SRA) normally reside in a file
called
rc.startsra in the /tmp/boot directory. When the Freeway server boots up, it first exe-
cutes the instructions in the
bootcfg file. Then it looks for the existence of the rc.startsra
file. If it exists, the Freeway will treat rc.startsra as an ordinary shell script file and will exe-
cute the commands in that file as the root user. You may still find the
rc.startsra file useful
even if you dont have an SRA because it can also be used to set up additional services
on the Freeway (such as syslog, cron, etc.).
If you have the basic server software installed on your Freeway, then the
rc.startsra file
does not exist. If you are not sure if this file exists on your Freeway server, you can use
the following shell commands to check:
cd /tmp/boot
ls -al rc.*
ls: rc.*: No such file or directory
If the file rc.startsra already exists on your system, then refer to Section 6.6.2 for adding
your SRA start commands. If the file doesnt 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 /tmp/boot/ directory:
cd /tmp/boot
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