|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
good old syslog-ng issue
hi folks!
my /etc/syslog-ng/syslog-ng.conf has the folowing directive under the source section: Code:
file("/dev/klog") i get the following: Code:
# syslog-ng start Changing permissions on special file /dev/klog Error opening file /dev/klog for reading (Device busy) Error initializing configuration, exiting. # i googled just to find out that this is the common issue, but have found no sollution so far. any ideas? |
|
||||
Have you checked out this quick article? It mentions doing-
Code:
source local { internal(); pipe("/dev/klog" log_prefix("kernel: ")); unix-dgram("/dev/log"); };
__________________
Network Firefighter |
|
|||
easy now, guys.
i was quite bussy with my work and had no time to check my home OpenBSD box. i really appreciate your help, ai-danno! now to the issue. i edited my syslog-ng config and now it includes the following: Code:
source log_everything { internal(); pipe("/dev/klog" log_prefix("kernel: ")); unix-dgram("/dev/log"); tcp( port(1468) max-connections(2) ); }; |
|
|||
issue resolved. it was native syslogd process that was "holding" /dev/klog. now when i killed native syslogd - syslog-ng starts OK. i will now edit /etc/rc and /etc/rc.conf to prevent the native syslogd daemon from starting.
Last edited by amiga505; 7th July 2008 at 08:43 AM. |
|
|||
well... that's what we got after reboot:
Code:
# # ps -ax | grep syslog 30793 ?? Is 0:00.03 /usr/local/sbin/syslog-ng -p /var/run/syslog-ng.pid # # netstat -anp tcp Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) .. skip .. tcp 0 0 *.1468 *.* LISTEN # Code:
# # syslog-ng restart Changing permissions on special file /dev/klog Error opening file /dev/klog for reading (Device busy) Error initializing configuration, exiting. # |
Tags |
syslog-ng |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Good VPN service? | guitarscn | Off-Topic | 2 | 15th December 2009 08:55 AM |
are trackballs any good? | ephemera | General Hardware | 11 | 31st July 2008 09:37 PM |
Cisco Secure ACS 4.1 syslog OpenBSD 3.9 | cyberpaisalegionair | OpenBSD General | 1 | 24th July 2008 06:42 PM |
SYSLOG disappearance | jaymax | FreeBSD General | 6 | 26th June 2008 02:53 AM |
Good morning all | SgtHarper | Feedback and Suggestions | 0 | 9th May 2008 08:20 AM |