move logs to /var/log/dinit

This commit is contained in:
Muhammad Herdiansyah 2021-11-02 16:58:48 +07:00
parent ba39121523
commit f84d2fb009
3 changed files with 11 additions and 9 deletions

View file

@ -1,10 +1,11 @@
PREFIX ?= /usr
SYSCONFDIR ?= /etc
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
DATADIR ?= $(PREFIX)/share
MANDIR ?= $(DATADIR)/man/man8
DINITDIR ?= $(SYSCONFDIR)/dinit.d
PREFIX ?= /usr
SYSCONFDIR ?= /etc
LOCALSTATEDIR ?= /var
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
DATADIR ?= $(PREFIX)/share
MANDIR ?= $(DATADIR)/man/man8
DINITDIR ?= $(SYSCONFDIR)/dinit.d
BIN_PROGRAMS = modules-load
@ -88,6 +89,7 @@ install:
install -d $(DESTDIR)$(DINITDIR)/scripts
install -d $(DESTDIR)$(DINITDIR)/boot.d
install -d $(DESTDIR)$(DINITDIR)/mount.d
install -d $(DESTDIR)$(LOCALSTATEDIR)/log/dinit
# placeholder
touch $(DESTDIR)$(DINITDIR)/mount.d/.KEEP
touch $(DESTDIR)$(DINITDIR)/boot.d/.KEEP

View file

@ -8,7 +8,7 @@ depends-ms = tty3
depends-ms = tty4
depends-ms = tty5
depends-ms = tty6
logfile = /run/dinit.d/boot.log
logfile = /var/log/dinit/boot.log
waits-for = rclocal
waits-for = loginready

View file

@ -2,7 +2,7 @@ type = scripted
command = /bin/mount -o remount,rw /
restart = false
options = starts-rwfs
logfile = /run/rootrw.log
logfile = /var/log/dinit/rootrw.log
depends-on = mount-all
waits-for = hwclock