Installation guide
4: SRA Design Tips and Restrictions
DC 900-1325I 65
The next parameter is a format string, equivalent to that which would be used in a printf
statement, followed by the variable-length parameter list of values that get expanded
into the formatted string. The log entry contains up to 255 characters.
Consult the Freeway User’s Guide for the procedure to display log messages.
4.3.2 Syslog
The syslogd daemon provides UNIX-style logging for applications running on the Free-
way server. The syslogd daemon isn't started by default on a standard Freeway, but you
can start it by putting a few lines into your SRA startup configuration file.
Below is a simple example of how to setup the syslogd daemon so that it starts automat-
ically when the Freeway is booted, by adding these lines to the Freeway's
bootcfg file:
exec = touch /var/log/lastlog
exec = chmod 644 /var/log/lastlog
exec = echo "auth_list = passwd" > /etc/auth.conf
exec = touch /var/log/all.log
exec = chmod 644 /var/log/all.log
exec = echo "*.* /var/log/all.log" > /etc/syslog.conf
exec = /usr/sbin/syslogd -s
The above commands will set up syslogd to log all syslog output to the /var/log/all.log
file. Note also that if you add more than that single line to /etc/syslog.conf, you must use
">>" rather than a ">" in your added lines (all lines except the first), to append to the file
rather than re-create it.
On standard Freeway servers, /var/log/ is a RAM-disk partition, so the all.log file will be
lost every time the Freeway is rebooted. If you need access to the log files across reboots,
you should set up syslogd to log onto another machine in your network. Also, if you
keep your Freeway powered up for extended periods, you should check occasionally to
make sure the RAM-disk partition doesn't fill up with log data (or also set up the new-
syslog daemon). There should be several megabytes available in the partition which