]> Zhao Yanbai Git Server - minix.git/commitdiff
etc: create system log files 51/3051/2
authorDavid van Moolenbroek <david@minix3.org>
Mon, 10 Aug 2015 10:22:40 +0000 (12:22 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 10 Aug 2015 11:38:16 +0000 (11:38 +0000)
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

distrib/sets/lists/minix/mi
etc/Makefile

index 88071c1869723023f66e3bc36690ac00171f9f22..3a47f67f19e921c12f2dd27a358ff5879287b27c 100644 (file)
 ./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
index a4b4a47f332ce50165aefb26f817e2720de8df5c..f0f86a944a2a272d5974ff90b8a81a86d2bc5abb 100644 (file)
@@ -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 \