[Bug 238006] syslogd not starting because of missing /var/run/log

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 21 11:25:30 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238006

--- Comment #2 from Jason Mader <jasonmader at gmail.com> ---
(In reply to Kubilay Kocak from comment #1)

FreeBSD safe 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC  amd64

# cat /etc/rc.conf
ipsec_enable="YES"
zfs_enable="YES"
hostname="safe"
syslogd_flags="-ss"
devd_enable="NO"
dumpdev="NO"
sendmail_enable="NONE"
moused_ums0_enable="NO"
ntpd_enable="NO"
chronyd_enable="YES"
chronyd_flags="-4"
sshd_enable="YES"
sshd_flags="-4 -g 3"
harvest_mask="351"
ifconfig_cxl0="inet 10.141.254.2/16 mtu 9198 -vlanmtu -vlanhwtag -vlanhwcsum
-vlanhwtso -tso6 -rxcsum6 -txcsum6 description internalnet"
ifconfig_cxl1_ipv6="inet6 2620:10e:6024:f004::ca08 prefixlen 64 mtu 9000 -arp
-vlanmtu -vlanhwtag -vlanhwcsum -vlanhwtso -tso4 -tso6 -rxcsum -txcsum
description CCSA-HPC"
ipv6_network_interfaces="cxl1"
ipv6_static_routes="GlobalUnicast"
ipv6_route_GlobalUnicast="-inet6 2000::/3 fe80::1%cxl1 -mtu 9000"
firewall_enable="YES"
firewall_script="/etc/ipfw.rules"
clear_tmp_X="NO"

# cat /etc/syslog.conf
# $FreeBSD: releng/12.0/usr.sbin/syslogd/syslog.conf 338146 2018-08-21
17:01:47Z brd $
#
#       Spaces ARE valid field separators in this file. However,
#       other *nix-like systems still insist on using tabs as field
#       separators. If you are sharing this file between systems, you
#       may want to use only tabs as field separators here.
#       Consult the syslog.conf(5) manpage.
*.err;kern.warning;auth.notice;mail.crit                /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err  
/var/log/messages
security.*                                      /var/log/security
auth.info;authpriv.info                         /var/log/auth.log
mail.info                                       /var/log/maillog
cron.*                                          /var/log/cron
!-devd
*.=debug                                        /var/log/debug.log
*.emerg                                         *
# uncomment this to log all writes to /dev/console to /var/log/console.log
# touch /var/log/console.log and chmod it to mode 600 before it will work
#console.info                                   /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.*                                            /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*                                            @loghost
# uncomment these if you're running inn
# news.crit                                     /var/log/news/news.crit
# news.err                                      /var/log/news/news.err
# news.notice                                   /var/log/news/news.notice
# Uncomment this if you wish to see messages produced by devd
# !devd
# *.>=notice                                    /var/log/devd.log
!*
include                                         /etc/syslog.d
include                                         /usr/local/etc/syslog.d

# ls -al /
total 40
drwxr-xr-x  19 root  wheel    23 May  8 01:52 .
drwxr-xr-x  19 root  wheel    23 May  8 01:52 ..
-rw-r--r--   2 root  wheel   951 Apr  6 16:57 .cshrc
-rw-r--r--   2 root  wheel   470 Apr  6 16:57 .profile
drwxr-xr-x   2 root  wheel    46 Apr  6 17:05 bin
drwxr-xr-x  10 root  wheel    63 Apr  6 21:15 boot
dr-xr-xr-x  22 root  wheel   512 May  8 01:51 dev
-rw-------   1 root  wheel  4096 May  8 01:52 entropy
drwxr-xr-x  25 root  wheel   113 May  7 17:33 etc
drwxr-xr-x   4 root  sys       4 Jan 31  2017 home
drwxr-xr-x   4 root  wheel    61 Apr  6 17:07 lib
drwxr-xr-x   3 root  wheel     4 Apr  6 16:57 libexec
drwxr-xr-x   2 root  wheel     2 Sep 29  2016 media
drwxr-xr-x   2 root  wheel     2 Sep 29  2016 mnt
drwxr-xr-x   2 root  wheel     2 Apr  6 16:57 net
dr-xr-xr-x   2 root  wheel     2 Sep 29  2016 proc
drwxr-xr-x   2 root  wheel   150 Apr  6 17:05 rescue
drwxr-xr-x   4 root  wheel    24 May 20 19:28 root
drwxr-xr-x   2 root  wheel   137 Apr  6 17:05 sbin
lrwxr-xr-x   1 root  wheel    11 Sep 29  2016 sys -> usr/src/sys
drwxrwxrwt   3 root  wheel     5 May 21 03:01 tmp
drwxr-xr-x  15 root  wheel    15 Feb  5  2017 usr
drwxr-xr-x  24 root  wheel    24 May  8 01:52 var

# ls -la /var/log
total 253
drwxr-xr-x   2 root  wheel       75 May 21 00:00 .
drwxr-xr-x  24 root  wheel       24 May  8 01:52 ..
-rw-------   1 root  wheel    25251 Apr  6 20:21 auth.log
-rw-------   1 root  wheel     1820 Jan  1 00:00 auth.log.0.bz2
-rw-------   1 root  wheel     8408 Sep 20  2018 auth.log.1.bz2
-rw-------   1 root  wheel     6353 Jan  1  2018 auth.log.2.bz2
-rw-------   1 root  wheel     8089 Aug 11  2017 auth.log.3.bz2
-rw-------   1 root  wheel     8117 Mar  8  2017 auth.log.4.bz2
-rw-------   1 root  wheel     8063 Jan 30  2017 auth.log.5.bz2
-rw-------   1 root  wheel     2006 Jan  1  2017 auth.log.6.bz2
-rw-------   1 root  wheel    82288 Apr  6 20:22 cron
-rw-------   1 root  wheel     6464 Apr  1 06:00 cron.0.bz2
-rw-------   1 root  wheel     6484 Mar 25 03:00 cron.1.bz2
-rw-------   1 root  wheel     6476 Mar 17 23:00 cron.2.bz2
-rw-r-----   1 root  wheel    12353 May 21 03:01 daily.log
-rw-r-----   1 root  wheel     3098 May 21 00:00 daily.log.0.bz2
-rw-r-----   1 root  wheel     3229 May 20 00:00 daily.log.1.bz2
-rw-r-----   1 root  wheel     3055 May 19 00:00 daily.log.2.bz2
-rw-r-----   1 root  wheel     3047 May 18 00:00 daily.log.3.bz2
-rw-r-----   1 root  wheel     3029 May 17 00:00 daily.log.4.bz2
-rw-r-----   1 root  wheel     3027 May 16 00:00 daily.log.5.bz2
-rw-r-----   1 root  wheel     3013 May 15 00:00 daily.log.6.bz2
-rw-------   1 root  wheel     2266 Apr  6 17:06 debug.log
-rw-r--r--   1 root  wheel       59 Oct 12  2016 devd.log
-rw-------   1 root  wheel    23390 May 19 03:01 dmesg.today
-rw-------   1 root  wheel    23125 May  8 03:01 dmesg.yesterday
-rw-------   1 root  wheel      696 May 16 03:01 ipfw.today
-rw-------   1 root  wheel      685 May  9 03:01 ipfw.yesterday
-rw-r--r--   1 root  wheel       59 Oct 12  2016 lpd-errs
-rw-r-----   1 root  wheel       59 May 21 00:00 maillog
-rw-r-----   1 root  wheel      119 May 21 00:00 maillog.0.bz2
-rw-r-----   1 root  wheel      119 May 20 00:00 maillog.1.bz2
-rw-r-----   1 root  wheel      112 May 19 00:00 maillog.2.bz2
-rw-r-----   1 root  wheel      115 May 18 00:00 maillog.3.bz2
-rw-r-----   1 root  wheel      120 May 17 00:00 maillog.4.bz2
-rw-r-----   1 root  wheel      120 May 16 00:00 maillog.5.bz2
-rw-r-----   1 root  wheel      119 May 15 00:00 maillog.6.bz2
-rw-r--r--   1 root  wheel    94975 Apr  6 20:22 messages
-rw-r--r--   1 root  wheel     2481 Jan  1 00:00 messages.0.bz2
-rw-r--r--   1 root  wheel    10069 Jan  1  2018 messages.1.bz2
-rw-r--r--   1 root  wheel    11384 Feb  7  2017 messages.2.bz2
-rw-r--r--   1 root  wheel    11345 Jan 12  2017 messages.3.bz2
-rw-r--r--   1 root  wheel     5630 Jan 10  2017 messages.4.bz2
-rw-r-----   1 root  wheel      216 May  1 05:30 monthly.log
-rw-r-----   1 root  wheel      205 May  1 00:00 monthly.log.0.bz2
-rw-r-----   1 root  wheel      202 Apr  1 00:00 monthly.log.1.bz2
-rw-r-----   1 root  wheel      197 Jul  1  2018 monthly.log.10.bz2
-rw-r-----   1 root  wheel      202 Jun  1  2018 monthly.log.11.bz2
-rw-r-----   1 root  wheel      203 Mar  1 00:00 monthly.log.2.bz2
-rw-r-----   1 root  wheel      204 Feb  1 00:00 monthly.log.3.bz2
-rw-r-----   1 root  wheel      202 Jan  1 00:00 monthly.log.4.bz2
-rw-r-----   1 root  wheel      200 Dec  1 00:00 monthly.log.5.bz2
-rw-r-----   1 root  wheel      202 Nov  1  2018 monthly.log.6.bz2
-rw-r-----   1 root  wheel      201 Oct  1  2018 monthly.log.7.bz2
-rw-r-----   1 root  wheel      198 Sep  1  2018 monthly.log.8.bz2
-rw-r-----   1 root  wheel      204 Aug  1  2018 monthly.log.9.bz2
-rw-------   1 root  wheel     4782 May  2 03:01 mount.today
-rw-------   1 root  wheel     4610 Apr 23 03:01 mount.yesterday
-rw-r-----   1 root  network     59 Oct 12  2016 ppp.log
-rw-------   1 root  wheel       59 Oct 12  2016 security
-rw-------   1 root  wheel     3112 Apr  7 03:01 setuid.today
-rw-------   1 root  wheel     3304 Dec 13  2016 setuid.yesterday
-rw-------   1 root  wheel      154 Apr  6 18:16 userlog
-rw-r--r--   1 root  wheel      197 May 21 11:19 utx.lastlogin
-rw-r--r--   1 root  wheel     2652 May 21 11:19 utx.log
-rw-r--r--   1 root  wheel     6910 May  1 05:00 utx.log.0
-rw-r--r--   1 root  wheel     3441 Apr  1 05:00 utx.log.1
-rw-r--r--   1 root  wheel      888 Mar  1 05:00 utx.log.2
-rw-r-----   1 root  wheel      162 May 18 04:15 weekly.log
-rw-r-----   1 root  wheel      193 May 18 00:00 weekly.log.0.bz2
-rw-r-----   1 root  wheel      194 May 11 00:00 weekly.log.1.bz2
-rw-r-----   1 root  wheel      197 May  4 00:00 weekly.log.2.bz2
-rw-r-----   1 root  wheel      197 Apr 27 00:00 weekly.log.3.bz2
-rw-r-----   1 root  wheel      195 Apr 20 00:00 weekly.log.4.bz2
-rw-------   1 root  wheel       59 Oct 12  2016 xferlog

# ls -la /var
total 21
drwxr-xr-x  24 root     wheel    24 May  8 01:52 .
drwxr-xr-x  19 root     wheel    23 May  8 01:52 ..
drwxr-xr-x   2 root     wheel     2 Sep 29  2016 account
drwxr-xr-x   4 root     wheel     4 Sep 29  2016 at
drwxr-x---   4 root     audit     4 Sep 29  2016 audit
drwxrwx---   2 root     authpf    2 Sep 29  2016 authpf
drwxr-x---   2 root     wheel    15 May 21 03:01 backups
drwxr-xr-x   3 root     wheel     3 Oct 13  2016 cache
drwxr-x---   2 root     wheel     3 Sep 29  2016 crash
drwxr-x---   3 root     wheel     3 Sep 29  2016 cron
drwxr-xr-x  14 root     wheel    21 May 17 15:26 db
dr-xr-xr-x   2 root     wheel     2 Sep 29  2016 empty
drwxrwxr-x   2 root     games     2 Sep 29  2016 games
drwx------   2 root     wheel     2 Sep 29  2016 heimdal
drwxr-xr-x   2 root     wheel    75 May 21 00:00 log
drwxrwxr-x   2 root     mail      3 Apr  6 18:16 mail
drwxr-xr-x   2 daemon   wheel     3 Oct 12  2016 msgs
drwxr-xr-x   2 root     wheel     2 Sep 29  2016 preserve
drwxr-xr-x   6 root     wheel    15 May 21 03:01 run
drwxrwxr-x   2 root     daemon    2 Sep 29  2016 rwho
drwxr-xr-x   9 root     wheel     9 Sep 29  2016 spool
drwxrwxrwt   3 root     wheel     3 Oct 23  2016 tmp
drwxr-xr-x   3 unbound  unbound   3 Sep 29  2016 unbound
drwxr-xr-x   2 root     wheel     4 Apr  6 17:04 yp

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list