syslogd with log files in /tmp

From: Matthias Apitz <guru_at_unixarea.de>
Date: Thu, 30 Apr 2009 11:42:18 +0200
Hello,

I've configured in syslog.conf(5) the log files in /tmp and not
/var/log; /tmp is a memfs to reduce writes to SSD:

# mount
...
/dev/md0 on /tmp (ufs, local)

provided via /etc/rc.conf.local as:

tmpmfs="YES"
tmpsize="128m"

and syslogd should create the log files on start because it is started
with

syslogd_enable="YES"
syslogd_flags="-s -C"

on reboot it seems that syslogd has no logfiles (as I can see with
lsof), but after I restart it with

# /etc/rc.d/syslogd restart

all is fine; maybe this is because syslogd is started before tmpmfs is
ready? in RELENG_7 it worked exactly this way, now in CURRENT not;
any idea how to solve this?

	matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz_at_oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD.
Received on Thu Apr 30 2009 - 07:42:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:46 UTC