|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
change syslogd to rsyslogd
OpenBSD 6.0
Good afternoon all, I am currently trying to switch from syslogd to rsyslogd and have installed rsyslogd from packages. Merely stopping syslogd via the rc.d script and starting rsyslogd doesn't work - rsyslogd is running but not logging anything. I have found out that /etc/rc.d/syslogd, when executed (probably with a stop command), apparently deletes /dev/log which both syslogd and rsyslogd read from. rc_pre() { rm -f /dev/log } /dev/log is only present when syslogd is running. My question is, how and at which point is /dev/log created and why is it deleted after syslogd stops? TIA Matthias |
|
||||
Isn't the pid file just an ordinary file, such as /var/run/syslog.pid, which holds the daemon's process id? I suspect this is the variable _PATH_LOGPID.
The socket may be _PATH_KLOG ? At the moment I can't find where these are defined, nor can I find where _PATH_KLOG might be unlink'ed, and it's late ... Last edited by IdOp; 5th November 2016 at 03:46 AM. Reason: filename |
|
||||
Well, I'm awake. No coffee yet, so let's hope I have this right.
We can se the "rm -f /dev/log" in the pre- script today. It was in the initial commit of the /etc/rc.d/syslogd file on 06-Jul-2011 Before OpenBSD had the rc.d(8) subsystem, there was an "rm -f log" in /etc/rc. It moved locations 21-Dec-1997, with revision 1.58, but it was in the initial import 18-Oct-1995. I'm not going to delve any deeper. |
|
|||
Quote:
http://openbsd-archive.7691.n7.nabbl...-td292794.html
__________________
Signature: Furthermore, I consider that systemd must be destroyed. Based on Latin oratorical phrase |
Tags |
log, rsyslogd, syslogd |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Send Syslogd To External Host | plexter | OpenBSD General | 2 | 18th July 2011 08:11 PM |
Change for rc.lkm | IdOp | NetBSD General | 2 | 24th August 2009 02:33 PM |
Freebsd 7.1-STABLE and dd-wrt v24 syslogd | da1 | FreeBSD General | 9 | 16th March 2009 05:15 PM |
Silencing gconfd spam in syslogd... | BSDfan666 | Guides | 0 | 12th December 2008 10:01 PM |
change ttl value | ecnalbya | OpenBSD Security | 18 | 23rd August 2008 12:46 PM |