Betr.: Re: [syslog-ng]pbs on syslog-ng 1.5.23 on freebsd 4.7 on / partition read-only !
Hi, Really, as mentioned by Balazs, try using /var/run/log in your syslog-ng.conf file. On Freebsd 4.5: syslog.h:#define _PATH_LOG "/var/run/log" /dev/log is a symbolic link to /var/run/log, so you can not use it to create your socket. I guess it provides an interface for applications to log to /dev/log. Trying to start the bsd syslogd with /dev/log (syslogd -p /dev/log) will also fail. Regards, Esteban. ___________________________________________ wok, n.: Something to thwow at a wabbit. ___________________________________________ |---------+--------------------------------> | | "Balazs Scheidler" | | | <bazsi@balabit.hu> | | | Verzonden door: | | | syslog-ng-admin@lists| | | .balabit.hu | | | | | | | | | 11-12-2002 12:40 | | | Antwoord a.u.b. aan | | | syslog-ng | | | | |---------+-------------------------------->
-------------------------------------------------------------------------------------------------------------------------------| | Aan: rmkml <rmkml@wanadoo.fr> | | cc: syslog-ng@lists.balabit.hu | |Onderwerp: Re: [syslog-ng]pbs on syslog-ng 1.5.23 on freebsd 4.7 on / partition read-only ! | -------------------------------------------------------------------------------------------------------------------------------|
On Wed, Dec 11, 2002 at 12:35:36PM +0100, rmkml wrote:
excuse me,
but i not have /var/run/log file !
on partition / read-only, syslogd good start & job !
why syslog-ng fail with error msg ? io.c: bind_unix_socket(): bind failed /dev/log (Address already in use)
because not process "use" /dev/log !
I don't really understand you here. syslog-ng fails to open /dev/log as creating a socket is a write operation. Try ktrace-ing the original syslogd to see what it does to create its socket. Maybe it creates /var/run/log and /dev/log is a symlink to /var/run/log ? I'm Ccing you to the syslog-ng list, they might have an answer ready for you. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html ------------------------------------------------------------------------------ De Belastingdienst gebruikt e-mail niet voor officiele mededelingen. ==============================================================================
Hi,
Really, as mentioned by Balazs, try using /var/run/log in your syslog-ng.conf file.
On Freebsd 4.5: syslog.h:#define _PATH_LOG "/var/run/log"
I dare to say, it is exactly what configure script is for :-) -andrey
/dev/log is a symbolic link to /var/run/log, so you can not use it to create your socket. I guess it provides an interface for applications to log to /dev/log.
Trying to start the bsd syslogd with /dev/log (syslogd -p /dev/log) will also fail.
Regards, Esteban.
___________________________________________ wok, n.: Something to thwow at a wabbit. ___________________________________________
|---------+--------------------------------> | | "Balazs Scheidler" | | | <bazsi@balabit.hu> | | | Verzonden door: | | | syslog-ng-admin@lists| | | .balabit.hu | | | | | | | | | 11-12-2002 12:40 | | | Antwoord a.u.b. aan | | | syslog-ng | | | | |---------+-------------------------------->
----------------------------------------------------------------------- --------------------------------------------------------| | Aan: rmkml <rmkml@wanadoo.fr> | | cc: syslog-ng@lists.balabit.hu | |Onderwerp: Re: [syslog-ng]pbs on syslog-ng 1.5.23 on freebsd 4.7 on / partition read-only ! | ----------------------------------------------------------------------- --------------------------------------------------------|
On Wed, Dec 11, 2002 at 12:35:36PM +0100, rmkml wrote:
excuse me,
but i not have /var/run/log file !
on partition / read-only, syslogd good start & job !
why syslog-ng fail with error msg ? io.c: bind_unix_socket(): bind failed /dev/log (Address already in use)
because not process "use" /dev/log !
I don't really understand you here. syslog-ng fails to open /dev/log as creating a socket is a write operation.
Try ktrace-ing the original syslogd to see what it does to create its socket. Maybe it creates /var/run/log and /dev/log is a symlink to /var/run/log ?
I'm Ccing you to the syslog-ng list, they might have an answer ready for you.
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-------------------------------------------------------------------------- ----
De Belastingdienst gebruikt e-mail niet voor officiele mededelingen.
========================================================================== ====
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
ok it's good Thanks All. Regards Borzenkov Andrey wrote:
Hi,
Really, as mentioned by Balazs, try using /var/run/log in your syslog-ng.conf file.
On Freebsd 4.5: syslog.h:#define _PATH_LOG "/var/run/log"
I dare to say, it is exactly what configure script is for :-)
-andrey
/dev/log is a symbolic link to /var/run/log, so you can not use it to create your socket. I guess it provides an interface for applications to log to /dev/log.
Trying to start the bsd syslogd with /dev/log (syslogd -p /dev/log) will also fail.
Regards, Esteban.
___________________________________________ wok, n.: Something to thwow at a wabbit. ___________________________________________
|---------+--------------------------------> | | "Balazs Scheidler" | | | <bazsi@balabit.hu> | | | Verzonden door: | | | syslog-ng-admin@lists| | | .balabit.hu | | | | | | | | | 11-12-2002 12:40 | | | Antwoord a.u.b. aan | | | syslog-ng | | | | |---------+-------------------------------->
----------------------------------------------------------------------- --------------------------------------------------------| | Aan: rmkml <rmkml@wanadoo.fr> | | cc: syslog-ng@lists.balabit.hu | |Onderwerp: Re: [syslog-ng]pbs on syslog-ng 1.5.23 on freebsd 4.7 on / partition read-only ! | ----------------------------------------------------------------------- --------------------------------------------------------|
On Wed, Dec 11, 2002 at 12:35:36PM +0100, rmkml wrote:
excuse me,
but i not have /var/run/log file !
on partition / read-only, syslogd good start & job !
why syslog-ng fail with error msg ? io.c: bind_unix_socket(): bind failed /dev/log (Address already in use)
because not process "use" /dev/log !
I don't really understand you here. syslog-ng fails to open /dev/log as creating a socket is a write operation.
Try ktrace-ing the original syslogd to see what it does to create its socket. Maybe it creates /var/run/log and /dev/log is a symlink to /var/run/log ?
I'm Ccing you to the syslog-ng list, they might have an answer ready for you.
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-------------------------------------------------------------------------- ----
De Belastingdienst gebruikt e-mail niet voor officiele mededelingen.
========================================================================== ====
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
On Wed, Dec 11, 2002 at 04:04:30PM +0300, Borzenkov Andrey wrote:
Hi,
Really, as mentioned by Balazs, try using /var/run/log in your syslog-ng.conf file.
On Freebsd 4.5: syslog.h:#define _PATH_LOG "/var/run/log"
I dare to say, it is exactly what configure script is for :-)
the configure script is for detecting compile time variables. The path to the default local log socket above is configuration data for syslog-ng, as it doesn't care about what OS you are running on, you could specify /var/run/log on Linux too (and symlink /dev/log to /var/run/log). Too bad different platforms behave differently but that's what the contrib directory is for: include platform specific config files (btw: this BSD thing is clearly written in the INSTALL file) -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (4)
-
Balazs Scheidler
-
Borzenkov Andrey
-
EDL.Essed@belastingdienst.nl
-
rmkml