summaryrefslogtreecommitdiff
path: root/tmpfiles.d
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2017-06-29 07:57:35 +0200
committerMichael Biebl <biebl@debian.org>2017-06-29 08:01:37 +0200
commitaff804febc31d9f0d0f98ccc3cdf9f89dd64409c (patch)
tree4cd147ef81de6f2dfcac2ae694e86fa6022f9b34 /tmpfiles.d
parent1f3e486fa7b00cbf25ad64f33b59ea58b9fb06a7 (diff)
downloadsystemd-aff804febc31d9f0d0f98ccc3cdf9f89dd64409c.tar.gz
tmpfiles: create /var/log/lastlog if it does not exist
Create /var/log/lastlog the same way we create utmp and wtmp. This is useful for stateless systems where /var is volatile and a missing /var/log/lastlog otherwise creates error messages like Jun 27 20:00:00 huron sshd[1234]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory Fixes #6234
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/var.conf.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/tmpfiles.d/var.conf.m4 b/tmpfiles.d/var.conf.m4
index 24374ba8cb..e640fcd8c0 100644
--- a/tmpfiles.d/var.conf.m4
+++ b/tmpfiles.d/var.conf.m4
@@ -15,6 +15,7 @@ d /var/log 0755 - - -
m4_ifdef(`HAVE_UTMP',
f /var/log/wtmp 0664 root utmp -
f /var/log/btmp 0600 root utmp -
+f /var/log/lastlog 0664 root utmp -
)m4_dnl
d /var/cache 0755 - - -