From: David van Moolenbroek Date: Mon, 10 Aug 2015 10:22:40 +0000 (+0200) Subject: etc: create system log files X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=a6fc634735e53e5321540b57bde69b50150f9b08;p=minix.git etc: create system log files The new syslogd(8) does not create log files that do not already exist, and thus, we adopt the NetBSD way of creating them. Change-Id: Icd7fdba362726696df6a52dd55c049fd2bfcc2d3 --- diff --git a/distrib/sets/lists/minix/mi b/distrib/sets/lists/minix/mi index 88071c186..3a47f67f1 100644 --- a/distrib/sets/lists/minix/mi +++ b/distrib/sets/lists/minix/mi @@ -2292,6 +2292,8 @@ ./usr/libexec/makewhatis minix-sys ./usr/libexec/virecover minix-sys ./usr/log minix-sys +./usr/log/messages minix-sys +./usr/log/syslog minix-sys ./usr/Makefile minix-sys ./usr/man minix-sys ./usr/man/man1 minix-sys diff --git a/etc/Makefile b/etc/Makefile index a4b4a47f3..f0f86a944 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -355,7 +355,11 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV ${ETC_INSTALL_OBJ_FILE} -o ${BINOWN} -g ${BINGRP} -m 555 \ MAKEDEV ${DESTDIR}/dev .else +# As /var/log is a symlink to /usr/log, we need to use /usr/log for files +# in /var/log here. The same applies to the distrib list entries. .for owner group mode file in \ + ${BINOWN} ${BINGRP} 644 /usr/log/messages \ + ${BINOWN} ${BINGRP} 644 /usr/log/syslog \ games games 664 /var/games/tetris.scores ${_MKMSG_INSTALL} ${DESTDIR}${file} if [ ! -e ${DESTDIR}${file} -o -s ${DESTDIR}${file} ]; then \