Alt-F RC2 - syslogd problem

446 views
Skip to first unread message

NielK

unread,
Feb 25, 2012, 6:02:41 AM2/25/12
to Alt-F
Firstly, thank you for Alt-F :-)

I've just upgraded from RC1 to RC2 and noticed that syslogd isn't
starting any more, instead reporting an error:

syslogd: bad line 1: 1 tokens found, 2 needed

It looks like the newer version of busybox (since 1.19.0) now looks by
default for a configuration file (/etc/syslog.conf) in the traditional
format for syslog. Alt-F also uses a file of the same name to hold the
configuration for syslogd but it's in a different format designed to
be read by the Alt-F web interface.

As a short term solution, I edited /etc/init.d/S10syslog and /etc/
init.d/rcS and added "-f /dev/null" to the syslogd parameters. I'm
sure there are better solutions though.

Joao Cardoso

unread,
Feb 27, 2012, 11:41:15 PM2/27/12
to Alt-F
You are right, thanks.

Do you mind filling-in an issue report, so I don't forget fixing it?
Thanks

NielK

unread,
Feb 28, 2012, 4:59:47 PM2/28/12
to Alt-F
Done.

Joao Cardoso

unread,
Feb 28, 2012, 7:18:27 PM2/28/12
to Alt-F


On Feb 28, 9:59 pm, NielK <niel.kemp...@gmail.com> wrote:
> Done.

Fixed now in svn, thanks

NielK

unread,
Mar 2, 2012, 4:54:58 PM3/2/12
to Alt-F
Thank you. (Indeed you seem to have fixed it five hours before I
posted the bug report!)

pravinkumar

unread,
Jul 10, 2012, 9:18:30 AM7/10/12
to al...@googlegroups.com
 Can anyone please explain where exactly to add "-f /dev/null" messages
 in files /etc/init.d/syslog and /etc/init.d/rcS ?

To resolve the error message I did following things...

remove or rename the file /etc/syslog.conf and it will show system log messages at /var/log/messages file or where you redirected them. Ex. syslogd -O /var/log/messages in my case. It will not show you error " syslogd: bad line 1: 1 tokens found, 2 needed "

Joao Cardoso

unread,
Jul 10, 2012, 5:53:33 PM7/10/12
to al...@googlegroups.com
Neil Kempson comment in issue 80 is quite clear:

   Change the two files that call syslogd to specify an empty config file:

    file /etc/init.d/rcS
        line 47: add "-f /dev/null" to the end of the start-stop-daemon command line

    file /etc/init.d/S10syslog
        line 16: add "-f /dev/null" to the PARAMS value
Reply all
Reply to author
Forward
0 new messages