Hi Brian,
there is no syslog init in Kamikaze. This script comes from X-Wrt.
If you want to get information about its history, have a look at
the forum message http://forum.x-wrt.org/index.php/topic,368.0.html.
The script would work if it would run after the boot init. But we
do not want to miss all events between rcS and the syslog init (our
users are encouraged to kick out the *logd initialization in the boot
script). Therefore you have two instances of *logd.
It worked in 7.09 because we have supplied fake binaries (thanks
to the wrong PATH setting in busybox) to prevent it running from
the boot script.
The boot init needs a substantial modification, the best would
be splitting it into several smaller scripts for a particular task.
Best regards,
Lubos
Brian J. Murrell napsal(a):
> I'm looking at /etc/init.d/boot and /etc/init.d/syslog in Kamikaze.
> Both seem to start syslogd. /etc/init.d/boot does it in it's
> system_config() function:
>
> system_config() {
> ...
>
> config_get log_ip "$cfg" log_ip
> # but what if we want to use syslog-ng here?
> syslogd -C16 ${log_ip:+-L -R $log_ip}
> klogd
> }
>
> and of course /etc/init.d/syslog's whole purpose is to start it.
>
> How does this reconcile?
>
> Why am I asking? Because I've opted to install syslog-ng onto my
> Kamikaze router however I'm finding that I end up with both syslogd and
> syslog-ng running, even though I've disabled the /etc/init.d/syslog
> script (i.e. it is not linked into /etc/rc.d), which is obviously
> because /etc/init.d/boot is starting it.
>
> I could modify /etc/init.d/boot to start syslog-ng in preference to
> syslogd if it's installed, but first I want to understand how having
> syslogd started by both the boot and syslog scripts is reconciled.
>
> Cheers,
> b.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel