3 Commits

3 changed files with 14 additions and 15 deletions

View File

@@ -118,8 +118,8 @@ install-runit:
$(LN) $(RUNDIR)/reboot $(DESTDIR)$(RUNITDIR)/ $(LN) $(RUNDIR)/reboot $(DESTDIR)$(RUNITDIR)/
$(LN) $(RUNDIR)/stopit $(DESTDIR)$(RUNITDIR)/ $(LN) $(RUNDIR)/stopit $(DESTDIR)$(RUNITDIR)/
install -d $(DESTDIR)$(RCDIR) install -d $(DESTDIR)$(SYSCONFDIR)
install -m755 $(RCLOCAL) $(DESTDIR)$(RCDIR) install -m755 $(RCLOCAL) $(DESTDIR)$(SYSCONFDIR)
install -d $(DESTDIR)$(BINDIR) install -d $(DESTDIR)$(BINDIR)
install -m755 $(BIN) $(DESTDIR)$(BINDIR) install -m755 $(BIN) $(DESTDIR)$(BINDIR)

View File

@@ -10,13 +10,13 @@ for arg in $(cat /proc/cmdline); do
fi fi
done done
if [ -x @RCDIR@/rc.local ] && grep -qv '^#' @RCDIR@/rc.local; then
@RCDIR@/rc.local
echo "==> @RCDIR@/rc.local has been deprecated. Please move the contents"
echo " of the file to @SYSCONFDIR@/rc.local, since the next version of"
echo " runit-artix won't read @RCDIR@/rc.local anymore."
fi
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local [ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
# OpenRC compatibility
for script in /etc/local.d/*.start; do
[ -x "$script" ] && "$script"
done
runsvchdir "${runlevel}" runsvchdir "${runlevel}"
ln -s @RUNSVDIR@/current @SERVICEDIR@ ln -s @RUNSVDIR@/current @SERVICEDIR@

View File

@@ -11,13 +11,12 @@ stat_busy "Exit services ..."
sv exit @RUNDIR@/service/* sv exit @RUNDIR@/service/*
stat_done stat_done
if [ -x @RCDIR@/rc.shutdown ] && grep -qv '^#' @RCDIR@/rc.shutdown; then # OpenRC compatibility
@RCDIR@/rc.shutdown for script in /etc/local.d/*.stop; do
echo "==> @RCDIR@/rc.shutdown has been depreacted. Please move the contents" [ -x "$script" ] && "$script"
echo " of the file to @SYSCONFDIR@/rc.shutdown since the next version of" done
echo " runit-artix won't read @RCDIR@/rc.shutdown anymore."
fi [ -x @SYSCONFDIR@/rc.shutdown ] && @SYSCONFDIR@/rc.shutdown
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
run_shutdown run_shutdown