rc: allow syslog (service logging) to read options from /etc/syslogd.cfg
commit2823153e7b8de1a9b0c481bb9a69b23ac54c9892
authorRay <ray123>
Thu, 4 Nov 2010 17:25:31 +0000 (4 13:25 -0400)
committerFedor <fedork@ubuntu.(none)>
Sat, 6 Nov 2010 06:55:14 +0000 (6 02:55 -0400)
tree9d2d5e7da0fbe9282fe8a9f796ac013e024baa51
parent7227ade89633682b7ef5bf00dd6418645e206aa3
rc: allow syslog (service logging) to read options from /etc/syslogd.cfg

Note that is's not ".conf" in order to avoid confusion with the REAL syslogd.
Options are: rotate_size  num_of_rotations_to_keep   output_filename

All on the first line of the file, separated by spaces. A "-" means to use the
Tomato default for that number.

You have to create that file,
for example: echo "500 10 /mnt/TOSH_120/z.logs/syslog" >/etc/syslogd.cfg
then execute: service logging restart

It won't use the new logfile unless it can write to it in start_syslog.
So the restart command needs to be in a script that is executed after the disk is mounted.
release/src/router/rc/services.c