about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-09-06 11:21:19 +0200
committerLeah Neukirchen <chneukirchen@gmail.com>2019-09-06 14:40:42 +0200
commit42297f7576577eb9bdc7bafc8a6b8eefb6ecaca6 (patch)
tree972140b8c0ba1ce4246ed01e2eeb395b3c0793a4
parent047744cc50cdc2c84cc15374fa87a194ef63d384 (diff)
downloadrunit-void-42297f7576577eb9bdc7bafc8a6b8eefb6ecaca6.tar.gz
runit-void-42297f7576577eb9bdc7bafc8a6b8eefb6ecaca6.tar.xz
runit-void-42297f7576577eb9bdc7bafc8a6b8eefb6ecaca6.zip
core-services/05-misc.sh: create utmp early
-rw-r--r--core-services/05-misc.sh1
-rw-r--r--core-services/99-cleanup.sh1
2 files changed, 1 insertions, 1 deletions
diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh
index a7d7b19..7b035d6 100644
--- a/core-services/05-misc.sh
+++ b/core-services/05-misc.sh
@@ -1,5 +1,6 @@
 # vim: set ts=4 sw=4 et:
 
+install -m0664 -o root -g utmp /dev/null /run/utmp
 halt -B  # for wtmp
 
 if [ -z "$VIRTUALIZATION" ]; then
diff --git a/core-services/99-cleanup.sh b/core-services/99-cleanup.sh
index 2d7da1d..f27f728 100644
--- a/core-services/99-cleanup.sh
+++ b/core-services/99-cleanup.sh
@@ -1,6 +1,5 @@
 # vim: set ts=4 sw=4 et:
 
-install -m0664 -o root -g utmp /dev/null /run/utmp
 if [ ! -e /var/log/wtmp ]; then
 	install -m0664 -o root -g utmp /dev/null /var/log/wtmp
 fi